mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
That's no bug, it's quite fine the way it is (if id is
set to -1, it's ignored, and the passed_id argument is used). If you're experiencing trouble with mysql_close(), please give me a reproducing script. If there's a bug, it's not as simple as that.
This commit is contained in:
parent
46a9e6c23f
commit
37de6635b4
@ -598,9 +598,6 @@ PHP_FUNCTION(mysql_close)
|
||||
}
|
||||
|
||||
ZEND_FETCH_RESOURCE2(mysql, MYSQL *, mysql_link, id, "MySQL-Link", le_link, le_plink);
|
||||
|
||||
/* XXX shouldn't this be zend_list_delete((*mysql_link)->value.lval)
|
||||
* if the optional parameter is present? (steinm@php.net) */
|
||||
zend_list_delete(id);
|
||||
RETURN_TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user