01/11/2014 - LINUX
This error often occurs when the system ran out of memory while running a PHP application in terminal and related to PHP garbage collection, at least in my case. To solve the problem just run command below in terminal.
export USE_ZEND_ALLOC=0