cvs: php4 /ext/pgsql pgsql.c

From: Date: Wed, 13 Dec 2000 12:26:25 +0000
Subject: cvs: php4 /ext/pgsql pgsql.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3118@lists.php.net to get a copy of this message
sas Wed Dec 13 04:26:25 2000 EDT Modified files: /php4/ext/pgsql pgsql.c Log: Don't increase the refcount of id, if we already have increased the refcount of the same id before. PR: #8225 Index: php4/ext/pgsql/pgsql.c diff -u php4/ext/pgsql/pgsql.c:1.80 php4/ext/pgsql/pgsql.c:1.81 --- php4/ext/pgsql/pgsql.c:1.80 Thu Nov 2 18:46:49 2000 +++ php4/ext/pgsql/pgsql.c Wed Dec 13 04:26:25 2000 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pgsql.c,v 1.80 2000/11/03 02:46:49 zeev Exp $ */ +/* $Id: pgsql.c,v 1.81 2000/12/13 12:26:25 sas Exp $ */ #include <stdlib.h> @@ -117,8 +117,10 @@ if (PGG(default_link)!=-1) { zend_list_delete(PGG(default_link)); } - PGG(default_link) = id; - zend_list_addref(id); + if (PGG(default_link) != id) { + PGG(default_link) = id; + zend_list_addref(id); + } }

« previous php.cvs (#3118) next »