Re: cvs: php4 /ext/pgsql pgsql.c
| From: | Yasuo Ohgaki | Date: | Fri, 05 Apr 2002 06:41:03 +0000 |
| Subject: | Re: cvs: php4 /ext/pgsql pgsql.c | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-82117@lists.php.net to get a copy of this message | ||
Hi Derick,
This one liner should be merged.
I guess there are so many users that does not report problems.
Or nobody is using notice message from PostgreSQL server...
--
Yasuo Ohgaki
Yasuo Ohgaki wrote:
yohgaki Fri Apr 5 01:37:26 2002 EDTModified files: /php4/ext/pgsql pgsql.c Log:Fix pg_last_notice() double free. # This should be merged Index: php4/ext/pgsql/pgsql.c diff -u php4/ext/pgsql/pgsql.c:1.168 php4/ext/pgsql/pgsql.c:1.169 --- php4/ext/pgsql/pgsql.c:1.168 Thu Apr 4 08:54:51 2002 +++ php4/ext/pgsql/pgsql.c Fri Apr 5 01:37:26 2002 @@ -19,7 +19,7 @@+----------------------------------------------------------------------+*/ -/* $Id: pgsql.c,v 1.168 2002/04/04 13:54:51 yohgaki Exp $ */ +/* $Id: pgsql.c,v 1.169 2002/04/05 06:37:26 yohgaki Exp $ */ #include <stdlib.h> @@ -987,7 +987,7 @@ 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;}