]> granicus.if.org Git - php/commitdiff
freeing result and stmt properties in MSHUTDOWN
authorGeorg Richter <georg@php.net>
Wed, 10 Dec 2003 10:06:07 +0000 (10:06 +0000)
committerGeorg Richter <georg@php.net>
Wed, 10 Dec 2003 10:06:07 +0000 (10:06 +0000)
ext/mysqli/mysqli.c

index a363f4cc2f92f012abd55c975b0f6d14e03f0e78..1b8a14861b6631badb025fcd396b634b631769d0 100644 (file)
@@ -343,9 +343,6 @@ PHP_MINIT_FUNCTION(mysqli)
        mysqli_object_handlers.read_property = mysqli_read_property;
        mysqli_object_handlers.write_property = mysqli_write_property;
        mysqli_object_handlers.get_property_ptr_ptr = NULL;
-//     mysqli_object_handlers.call_method = php_mysqli_connect;
-
-/* todo: call method */
 
        zend_hash_init(&classes, 0, NULL, NULL, 1);
 
@@ -464,6 +461,8 @@ PHP_MINIT_FUNCTION(mysqli)
 PHP_MSHUTDOWN_FUNCTION(mysqli)
 {
        zend_hash_destroy(&mysqli_link_properties);
+       zend_hash_destroy(&mysqli_result_properties);
+       zend_hash_destroy(&mysqli_stmt_properties);
        zend_hash_destroy(&classes);
 
        UNREGISTER_INI_ENTRIES();