cvs: php-src /ext/com_dotnet com_extension.c
| From: | Zeev Suraski | Date: | Mon, 18 Aug 2003 20:45:00 +0000 |
| Subject: | cvs: php-src /ext/com_dotnet com_extension.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-23281@lists.php.net to get a copy of this message | ||
zeev Mon Aug 18 16:45:00 2003 EDT
Modified files:
/php-src/ext/com_dotnet com_extension.c
Log:
Fix leak - non persistent hashes cannot be used in MINIT!
Index: php-src/ext/com_dotnet/com_extension.c
diff -u php-src/ext/com_dotnet/com_extension.c:1.1 php-src/ext/com_dotnet/com_extension.c:1.2
--- php-src/ext/com_dotnet/com_extension.c:1.1 Thu Aug 14 12:49:55 2003
+++ php-src/ext/com_dotnet/com_extension.c Mon Aug 18 16:45:00 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: com_extension.c,v 1.1 2003/08/14 16:49:55 wez Exp $ */
+/* $Id: com_extension.c,v 1.2 2003/08/18 20:45:00 zeev Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -118,7 +118,7 @@
ce.create_object = php_com_object_new;
zend_register_internal_class_ex(&ce, php_com_variant_class_entry, "variant"
TSRMLS_CC);
- zend_ts_hash_init(&php_com_typelibraries, 0, NULL, php_com_typelibrary_dtor, 0);
+ zend_ts_hash_init(&php_com_typelibraries, 0, NULL, php_com_typelibrary_dtor, 1);
#if HAVE_MSCOREE_H
INIT_CLASS_ENTRY(ce, "dotnet", NULL);