diff options
author | Andi Gutmans <andi@php.net> | 2002-03-01 14:04:51 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2002-03-01 14:04:51 +0000 |
commit | d1eea3de9c9a1e92a5cd0813c4608b9defef4927 (patch) | |
tree | df42216da86dfeb33d74245e2d27d5d89568c1bb /Zend/zend_compile.c | |
parent | 6f6c4ec7c7a24f98a646c1a485fcac39ea24defd (diff) | |
download | php-git-d1eea3de9c9a1e92a5cd0813c4608b9defef4927.tar.gz |
- Fix bug in nested try/catch's
- Infrastructure for implementing imports of methods.
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r-- | Zend/zend_compile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 96a92b7356..da02140373 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -762,6 +762,8 @@ void zend_do_begin_function_declaration(znode *function_token, znode *function_n op_array.arg_types = NULL; op_array.return_reference = return_reference; + op_array.scope = CG(active_class_entry); + if (is_method) { zend_hash_update(&CG(active_class_entry)->function_table, name, name_len+1, &op_array, sizeof(zend_op_array), (void **) &CG(active_op_array)); if ((CG(active_class_entry)->name_length == (uint) name_len) && (!memcmp(CG(active_class_entry)->name, name, name_len))) { |