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.


Command


export USE_ZEND_ALLOC=0