From: foobar Date: Mon, 10 Mar 2003 03:04:02 +0000 (+0000) Subject: Fixed some leaks. Patch by Moriyoshi X-Git-Tag: RELEASE_0_5~534 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8fc50ed6d25b77b1b935b2aad744133c5c1ee1f;p=php Fixed some leaks. Patch by Moriyoshi --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 5ccec45ebe..c8fbfc2ee0 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -2190,6 +2190,7 @@ void zend_do_begin_class_declaration(znode *class_token, znode *class_name, znod zend_error(E_COMPILE_ERROR, "Cannot use '%s' as class name as it is reserved", class_name->u.constant.value.str.val); } + new_class_entry->type = ZEND_USER_CLASS; new_class_entry->name = class_name->u.constant.value.str.val; new_class_entry->name_length = class_name->u.constant.value.str.len;