diff options
author | Sascha Schumann <sas@php.net> | 2000-12-14 00:03:21 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-12-14 00:03:21 +0000 |
commit | 1b32827801bb9c76826004a27b8059927785020e (patch) | |
tree | 0ef90848f9631adf522d17c29aaf26f500afd45f /ext | |
parent | 59b1db6bfc1737b23d8832565699a766301cba13 (diff) | |
download | php-git-1b32827801bb9c76826004a27b8059927785020e.tar.gz |
MFH fix for #8225
Diffstat (limited to 'ext')
-rw-r--r-- | ext/pgsql/pgsql.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 11722eae0a..76bd96216d 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -117,8 +117,10 @@ static void php_pgsql_set_default_link(int id) 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); + } } |