Re: svn: /php/php-src/trunk/ext/mysqlnd/ mysqlnd_auth.c
| From: | Kalle Sommer Nielsen | Date: | Tue, 01 Feb 2011 10:36:33 +0000 |
| Subject: | Re: svn: /php/php-src/trunk/ext/mysqlnd/ mysqlnd_auth.c | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-64479@lists.php.net to get a copy of this message | ||
Hi Andrey
2011/1/31, Andrey Hristov <php@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
kalle@php.net