]> granicus.if.org Git - php/commitdiff
- Fix internal classes
authorAndi Gutmans <andi@php.net>
Mon, 29 Oct 2001 18:10:36 +0000 (18:10 +0000)
committerAndi Gutmans <andi@php.net>
Mon, 29 Oct 2001 18:10:36 +0000 (18:10 +0000)
Zend/zend_API.c
Zend/zend_opcode.c

index 1893b1b07dfff610aa5fc1a0b2969289299457ff..9eecbdb597b7df34f18256f10336e81b1fcd14d5 100644 (file)
@@ -1216,7 +1216,7 @@ ZEND_API zend_class_entry *zend_register_internal_class(zend_class_entry *class_
        class_entry->constants_updated = 0;
        zend_hash_init(&class_entry->default_properties, 0, NULL, ZVAL_PTR_DTOR, 1);
        zend_hash_init(&class_entry->function_table, 0, NULL, ZEND_FUNCTION_DTOR, 1);
-
+       zend_hash_init(&class_entry->class_table, 10, NULL, ZEND_CLASS_DTOR, 1);
 
        if (class_entry->builtin_functions) {
                zend_register_functions(class_entry->builtin_functions, &class_entry->function_table, MODULE_PERSISTENT TSRMLS_CC);
index 08da904c35151c87f35c561ddb5f09bf42030b7f..273a4b3762e1d2cea0556bbd7008aa933eeb50b5 100644 (file)
@@ -124,7 +124,7 @@ ZEND_API void destroy_zend_class(zend_class_entry *ce)
                        free(ce->refcount);
                        zend_hash_destroy(&ce->function_table);
                        zend_hash_destroy(&ce->default_properties);
-                       /* zend_hash_destroy(&ce->class_table); FIXME: Make sure this is initialized */
+                       zend_hash_destroy(&ce->class_table);
                        break;
        }
 }