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 EDT > > Modified 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; > } > > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php