]> granicus.if.org Git - php/commitdiff
That's no bug, it's quite fine the way it is (if id is
authorZeev Suraski <zeev@php.net>
Wed, 5 Jul 2000 20:41:06 +0000 (20:41 +0000)
committerZeev Suraski <zeev@php.net>
Wed, 5 Jul 2000 20:41:06 +0000 (20:41 +0000)
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.

ext/mysql/php_mysql.c

index 3a3747bee8ff6162ce6483cf4ad4d875bfe6fab3..ac87d54226de667c15e8667250d65eaef291ee1e 100644 (file)
@@ -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;
 }