Re: cvs: php4 /ext/pgsql pgsql.c
| From: | derick@php.net | Date: | Fri, 05 Apr 2002 06:35:42 +0000 |
| Subject: | Re: cvs: php4 /ext/pgsql pgsql.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-10890@lists.php.net to get a copy of this message | ||
On Fri, 5 Apr 2002, 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
Go ahead...
Derick
>
>
> 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 CVS Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
-----------------------------------------------------------------------
Did I help you? Consider a gift:
http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B
-----------------------------------------------------------------------
PHP: Scripting the Web - derick@php.net
All your branches are belong to me!
SRM: Script Running Machine - www.vl-srm.net
-----------------------------------------------------------------------