Hi Andrey 2011/1/31, Andrey Hristov <p...@hristov.com>: > On 01/31/2011 01:32 PM, Kalle Sommer Nielsen wrote: > this will return emalloc-ed memory, right? Later this memory will be > freed with free() and guess what happens :)
No, the eXXXX functions will return emalloc()'d memory, the zend_strXXXX functions will return malloc()'d memory, see its implementation: http://lxr.php.net/opengrok/xref/PHP_TRUNK/Zend/zend_alloc.c#2566 -- regards, Kalle Sommer Nielsen ka...@php.net -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php