cvs: php4(php_4_0_4) /ext/pgsql pgsql.c
| From: | Sascha Schumann | Date: | Thu, 14 Dec 2000 00:03:21 +0000 |
| Subject: | cvs: php4(php_4_0_4) /ext/pgsql pgsql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-3139@lists.php.net to get a copy of this message | ||
sas Wed Dec 13 16:03:21 2000 EDT
Branch: php_4_0_4
Modified files:
/php4/ext/pgsql pgsql.c
Log:
MFH fix for #8225
Index: php4/ext/pgsql/pgsql.c
diff -u php4/ext/pgsql/pgsql.c:1.80 php4/ext/pgsql/pgsql.c:1.80.2.1
--- php4/ext/pgsql/pgsql.c:1.80 Thu Nov 2 18:46:49 2000
+++ php4/ext/pgsql/pgsql.c Wed Dec 13 16:03:21 2000
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pgsql.c,v 1.80 2000/11/03 02:46:49 zeev Exp $ */
+/* $Id: pgsql.c,v 1.80.2.1 2000/12/14 00:03:21 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);
+ }
}