mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
Fix msql_close()
This commit is contained in:
parent
a3a0fe3797
commit
a43cd1438e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user