georg           Wed Dec 10 05:06:08 2003 EDT

  Modified files:              
    /php-src/ext/mysqli mysqli.c 
  Log:
  freeing result and stmt properties in MSHUTDOWN
  
  
Index: php-src/ext/mysqli/mysqli.c
diff -u php-src/ext/mysqli/mysqli.c:1.20 php-src/ext/mysqli/mysqli.c:1.21
--- php-src/ext/mysqli/mysqli.c:1.20    Mon Nov 24 06:31:26 2003
+++ php-src/ext/mysqli/mysqli.c Wed Dec 10 05:06:07 2003
@@ -15,7 +15,7 @@
   | Author: Georg Richter <[EMAIL PROTECTED]>                                |
   +----------------------------------------------------------------------+
 
-  $Id: mysqli.c,v 1.20 2003/11/24 11:31:26 georg Exp $ 
+  $Id: mysqli.c,v 1.21 2003/12/10 10:06:07 georg Exp $ 
 */
 
 #ifdef HAVE_CONFIG_H
@@ -343,9 +343,6 @@
        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_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();

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to