From: Yasuo Ohgaki Date: Fri, 5 Apr 2002 06:45:25 +0000 (+0000) Subject: MFH. X-Git-Tag: php-4.2.0RC3~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=254485dbeaf85b96097c3a0f909e98b7aae1dd2e;p=php MFH. Fixed pg_last_notice() double free. --- diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 7171f332da..8e9fe793b0 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -975,7 +975,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; }