zend_mm_heap corrupted

Can you please tell me what is causing this error? It appears for me when I run the script from the command line ($php script.php). OC win7 with XAMPP version 1.7.7.


Answer 1

you need to look at the code, maybe something in the class is written incorrectly.

can rearrange memcashed.

//upd

Google gave hint of replacement in php.ini

allow_call_time_pass_reference = On

to

allow_call_time_pass_reference = Off


Answer 2

It turned out to be a memory overflow, I created the same instance of the class too many times, and this led to this error.