summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r--ext/mysql/php_mysql.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c
index 2eb11df834..3a3747bee8 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -598,7 +598,9 @@ 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;
}