From d79292d52b19c46937ba8cf0743cdce1692c4fe8 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Thu, 20 May 1999 09:08:29 +0000 Subject: [PATCH] - Fix a small problem with class decelerations. --- Zend/zend_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index cf5a1dcc16..cd83a7b897 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1204,7 +1204,7 @@ void do_begin_class_declaration(znode *class_name, znode *parent_class_name CLS_ opline->opcode = ZEND_DECLARE_FUNCTION_OR_CLASS; opline->op1.op_type = IS_CONST; opline->op1.u.constant.type = IS_LONG; - opline->op1.u.constant.value.lval = zend_hash_next_free_element(CG(function_table)); + opline->op1.u.constant.value.lval = zend_hash_next_free_element(CG(class_table)); opline->op2.op_type = IS_CONST; opline->op2.u.constant.type = IS_STRING; opline->op2.u.constant.value.str.val = estrndup(CG(class_entry).name, CG(class_entry).name_length); -- 2.50.1