Fix msql_close()

This commit is contained in:
Zeev Suraski 2000-11-03 00:52:54 +00:00
parent a3a0fe3797
commit a43cd1438e

View File

@ -404,6 +404,11 @@ DLEXPORT PHP_FUNCTION(msql_close)
ZEND_FETCH_RESOURCE2(msql, int, &msql_link, id, "mSQL-Link", msql_globals.le_link, msql_globals.le_plink);
zend_list_delete(Z_RESVAL_P(msql_link));
if (Z_RESVAL_P(mysql_link)==msql_globals.default_link) {
zend_list_delete(msql_globals.default_link);
}
zend_list_delete(id);
RETURN_TRUE;
}