From: Ilia Alshanetsky Date: Mon, 21 Aug 2006 16:53:50 +0000 (+0000) Subject: Fixed bug #38535 (memory corruption in pdo_pgsql driver on error retrieval X-Git-Tag: RELEASE_1_2_2~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d770ee2ef2ad498a04352d705bb77143a2c0984;p=php Fixed bug #38535 (memory corruption in pdo_pgsql driver on error retrieval inside a failed query executed via query() method). --- diff --git a/NEWS b/NEWS index 8042d8f0ba..baa861e446 100644 --- a/NEWS +++ b/NEWS @@ -1,11 +1,14 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? Sep 2006, PHP 5.2.0 +- Fixed bug #38535 (memory corruption in pdo_pgsql driver on error retrieval + inside a failed query executed via query() method). (Ilia) - Fixed bug #38524 (strptime() does not initialize the internal date storage structure). (Ilia) - Fixed PECL bug #8112 (OCI8 persistent connections misbehave when Apache process times out). (Tony) + 17 Aug 2006, PHP 5.2.0RC2 - Increased default memory limit to 16 megabytes to accommodate for a more accurate memory utilization measurement. diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 2b0596fd63..45df0b1221 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -1053,9 +1053,6 @@ static PHP_METHOD(PDO, query) zval_dtor(return_value); } - /* kill the object handle for the stmt here */ - zval_dtor(return_value); - RETURN_FALSE; } /* }}} */