svn: /php/php-src/branches/PHP_5_3/ext/mysqlnd/ mysqlnd_wireprotocol.c

From: Date: Thu, 17 Sep 2009 15:13:14 +0000
Subject: svn: /php/php-src/branches/PHP_5_3/ext/mysqlnd/ mysqlnd_wireprotocol.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-60420@lists.php.net to get a copy of this message
andrey Thu, 17 Sep 2009 15:13:14 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=288411 Log: MFH, a fix not included by the fix committed by Ulf. pemalloc and then efree - too bad! Sorry for committing in two passes, my big tree is already patched with compressed. Changed paths: U php/php-src/branches/PHP_5_3/ext/mysqlnd/mysqlnd_wireprotocol.c Modified: php/php-src/branches/PHP_5_3/ext/mysqlnd/mysqlnd_wireprotocol.c =================================================================== --- php/php-src/branches/PHP_5_3/ext/mysqlnd/mysqlnd_wireprotocol.c 2009-09-17 14:53:03 UTC (rev 288410) +++ php/php-src/branches/PHP_5_3/ext/mysqlnd/mysqlnd_wireprotocol.c 2009-09-17 15:13:14 UTC (rev 288411) @@ -1047,7 +1047,7 @@ p+=2; /* Check for additional textual data */ if (packet->header.size > (p - buf) && (len = php_mysqlnd_net_field_length(&p))) { - packet->info_or_local_file = mnd_pemalloc(len + 1, conn->persistent); + packet->info_or_local_file = mnd_emalloc(len + 1); memcpy(packet->info_or_local_file, p, len); packet->info_or_local_file[len] = '\0'; packet->info_or_local_file_len = len;

« previous php.cvs (#60420) next »