helly Sun Mar 6 16:40:01 2005 EDT Modified files: /php-src/ext/mysqli mysqli.c Log: - Bugfix #28840 __destruct of a class that extends mysqli not called http://cvs.php.net/diff.php/php-src/ext/mysqli/mysqli.c?r1=1.61&r2=1.62&ty=u Index: php-src/ext/mysqli/mysqli.c diff -u php-src/ext/mysqli/mysqli.c:1.61 php-src/ext/mysqli/mysqli.c:1.62 --- php-src/ext/mysqli/mysqli.c:1.61 Thu Jan 27 09:41:48 2005 +++ php-src/ext/mysqli/mysqli.c Sun Mar 6 16:40:01 2005 @@ -15,7 +15,7 @@ | Author: Georg Richter <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ - $Id: mysqli.c,v 1.61 2005/01/27 14:41:48 tony2001 Exp $ + $Id: mysqli.c,v 1.62 2005/03/06 21:40:01 helly Exp $ */ #ifdef HAVE_CONFIG_H @@ -349,7 +349,7 @@ zend_hash_copy(intern->zo.properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *)); - retval.handle = zend_objects_store_put(intern, NULL, mysqli_objects_free_storage, NULL TSRMLS_CC); + retval.handle = zend_objects_store_put(intern, (zend_objects_store_dtor_t) zend_objects_destroy_object, (zend_objects_free_object_storage_t) mysqli_objects_free_storage, NULL TSRMLS_CC); retval.handlers = &mysqli_object_handlers; return retval;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php