diff options
| author | Andi Gutmans <andi@php.net> | 1999-05-20 09:08:29 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 1999-05-20 09:08:29 +0000 |
| commit | d79292d52b19c46937ba8cf0743cdce1692c4fe8 (patch) | |
| tree | 0a065befc83000db6cd3ffdc44d2aa7387f606ad | |
| parent | 0bc950bcd52846ca2caf23f93f053a939af9ec8d (diff) | |
| download | php-git-d79292d52b19c46937ba8cf0743cdce1692c4fe8.tar.gz | |
- Fix a small problem with class decelerations.
| -rw-r--r-- | Zend/zend_compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
