mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed bug #28627 (When multiple MySQL links are used default link is
leaked). Patch by: gavin at ipalsoftware dot com
This commit is contained in:
parent
f1a4a14ccb
commit
0e443166e0
1 changed files with 3 additions and 0 deletions
|
@ -260,6 +260,9 @@ static void _free_mysql_result(zend_rsrc_list_entry *rsrc TSRMLS_DC)
|
|||
*/
|
||||
static void php_mysql_set_default_link(int id TSRMLS_DC)
|
||||
{
|
||||
if (MySG(default_link) != -1) {
|
||||
zend_list_delete(MySG(default_link));
|
||||
}
|
||||
MySG(default_link) = id;
|
||||
zend_list_addref(id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue