Re: [PHP-CVS] svn: /php/php-src/trunk/ext/mysqlnd/ mysqlnd_auth.c

2011-02-01 Thread Andrey Hristov
On 02/01/2011 11:36 AM, Kalle Sommer Nielsen wrote: > Hi Andrey > > 2011/1/31, Andrey Hristov : >> 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 e functions

Re: [PHP-CVS] svn: /php/php-src/trunk/ext/mysqlnd/ mysqlnd_auth.c

2011-02-01 Thread Kalle Sommer Nielsen
Hi Andrey 2011/1/31, Andrey Hristov : > 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 e functions will return emalloc()'d memory, the zend_str functions will

Re: [PHP-CVS] svn: /php/php-src/trunk/ext/mysqlnd/ mysqlnd_auth.c

2011-02-01 Thread Pierre Joye
On Mon, Jan 31, 2011 at 3:55 PM, Andrey Hristov wrote: > this will return emalloc-ed memory, right? Later this memory will be > freed with free() and guess what happens :) Is it used outside php? if not then it is a documentation matter no? "returned value has to be freed using efree". Cheers,

Re: [PHP-CVS] svn: /php/php-src/trunk/ext/mysqlnd/ mysqlnd_auth.c

2011-01-31 Thread Andrey Hristov
On 01/31/2011 01:32 PM, Kalle Sommer Nielsen wrote: > kalleMon, 31 Jan 2011 12:32:32 + > > Revision: http://svn.php.net/viewvc?view=revision&revision=307878 > > Log: > Use our own zend_strndup() implementation of strndup() -- Fixes build on > platforms wit

[PHP-CVS] svn: /php/php-src/trunk/ext/mysqlnd/ mysqlnd_auth.c

2011-01-31 Thread Kalle Sommer Nielsen
kalleMon, 31 Jan 2011 12:32:32 + Revision: http://svn.php.net/viewvc?view=revision&revision=307878 Log: Use our own zend_strndup() implementation of strndup() -- Fixes build on platforms without strndup(), like Windows Changed paths: U php/php-src/t

[PHP-CVS] svn: /php/php-src/trunk/ext/mysqlnd/ mysqlnd_auth.c

2011-01-27 Thread Andrey Hristov
andrey Thu, 27 Jan 2011 18:51:12 + Revision: http://svn.php.net/viewvc?view=revision&revision=307799 Log: a better habitat Changed paths: U php/php-src/trunk/ext/mysqlnd/mysqlnd_auth.c Modified: php/php-src/trunk/ext/mysqlnd/mysqlnd_auth.c ===

[PHP-CVS] svn: /php/php-src/trunk/ext/mysqlnd/ mysqlnd_auth.c

2011-01-27 Thread Andrey Hristov
andrey Thu, 27 Jan 2011 17:30:29 + Revision: http://svn.php.net/viewvc?view=revision&revision=307798 Log: fix a crash in new code Changed paths: U php/php-src/trunk/ext/mysqlnd/mysqlnd_auth.c Modified: php/php-src/trunk/ext/mysqlnd/mysqlnd_auth.c

[PHP-CVS] svn: /php/php-src/trunk/ext/mysqlnd/ mysqlnd_auth.c

2011-01-24 Thread Andrey Hristov
andrey Mon, 24 Jan 2011 13:59:28 + Revision: http://svn.php.net/viewvc?view=revision&revision=307712 Log: fix typos Changed paths: U php/php-src/trunk/ext/mysqlnd/mysqlnd_auth.c Modified: php/php-src/trunk/ext/mysqlnd/mysqlnd_auth.c ==