mirror of
https://github.com/php/php-src.git
synced 2024-11-26 11:23:47 +08:00
Don't increase the refcount of id, if we already have increased the refcount
of the same id before. PR: #8225
This commit is contained in:
parent
b2a016135e
commit
08d104e040
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user