From: Yasuo Ohgaki Date: Fri, 5 Apr 2002 06:37:26 +0000 (+0000) Subject: Fix pg_last_notice() double free. X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~868 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f2446e7de7f8c4235164e55ad353c03f16a3c9a;p=php Fix pg_last_notice() double free. # This should be merged --- diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 269a560996..0b42549a57 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -987,7 +987,7 @@ PHP_FUNCTION(pg_affected_rows) PHP_FUNCTION(pg_last_notice) { if (PGG(last_notice)) { - RETURN_STRINGL(PGG(last_notice), PGG(last_notice_len), 0); + RETURN_STRINGL(PGG(last_notice), PGG(last_notice_len), 1); } else { RETURN_FALSE; }