- fix leak with class constants
authorMichael Wallner <mike@php.net>
Sat, 10 Dec 2005 12:16:33 +0000 (12:16 +0000)
committerMichael Wallner <mike@php.net>
Sat, 10 Dec 2005 12:16:33 +0000 (12:16 +0000)
php_http_std_defs.h

index 489e37283ee3b2831b967c34e073766f54d9bbb9..7f65f849442d63dea15382b36563073f03b67ff5 100644 (file)
@@ -210,7 +210,6 @@ typedef int STATUS;
                name## _ce = zend_register_internal_class_ex(&ce, parent, NULL TSRMLS_CC); \
                name## _ce->ce_flags |= flags;  \
                memcpy(& name## _handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); \
-               zend_hash_init(& name## _ce->constants_table, 0, NULL, ZVAL_INTERNAL_PTR_DTOR, 1); \
                name## _declare_default_properties(); \
        }