Solved bugs #9746 and #9937, pg_close was closing twice the default conn.

This commit is contained in:
Romolo Manfredini 2001-03-24 18:36:43 +00:00
parent 48aa99f6be
commit 7a102a4669

View File

@ -531,7 +531,8 @@ PHP_FUNCTION(pg_close)
if (id!=-1
|| (pgsql_link && Z_RESVAL_PP(pgsql_link)==PGG(default_link))) {
zend_list_delete(PGG(default_link));
if (id!=-1)
zend_list_delete(PGG(default_link));
PGG(default_link) = -1;
}