We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ab0f12 commit 63126d8Copy full SHA for 63126d8
ext/pgsql/pgsql.c
@@ -845,18 +845,15 @@ PHP_FUNCTION(pg_close)
845
if (!pgsql_link) {
846
link = FETCH_DEFAULT_LINK();
847
CHECK_DEFAULT_LINK(link);
848
- zend_hash_del(&PGG(connections), link->hash);
849
- GC_DELREF(PGG(default_link));
+ zend_object_release(PGG(default_link));
850
PGG(default_link) = NULL;
851
- pgsql_link_free(link);
852
RETURN_TRUE;
853
}
854
855
link = Z_PGSQL_LINK_P(pgsql_link);
856
CHECK_PGSQL_LINK(link);
857
858
if (link == FETCH_DEFAULT_LINK()) {
859
860
GC_DELREF(PGG(default_link));
861
862
0 commit comments