diff options
author | Zeev Suraski <zeev@php.net> | 1999-04-24 17:16:39 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-04-24 17:16:39 +0000 |
commit | 208e81696f47af4b4658a135db4eb16a00eb6cdd (patch) | |
tree | 2948a34faf2b0c2bb280e64385faa3fcdef5872d | |
parent | 1ab3e00bc06fbe26c4d05533b9ffa61c36b15258 (diff) | |
download | php-git-208e81696f47af4b4658a135db4eb16a00eb6cdd.tar.gz |
Another small fix
-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 e7adf51917..f47cff1a51 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -712,7 +712,7 @@ void do_begin_dynamic_function_call(znode *function_name CLS_DC) unsigned char *ptr = NULL; int last_op_number = get_next_op_number(CG(active_op_array))-1; - if (CG(active_op_array)->opcodes[last_op_number].opcode == ZEND_FETCH_OBJ_R) { + if (last_op_number>=0 && CG(active_op_array)->opcodes[last_op_number].opcode == ZEND_FETCH_OBJ_R) { CG(active_op_array)->opcodes[last_op_number].opcode = ZEND_INIT_FCALL_BY_NAME; } else { zend_op *opline = get_next_op(CG(active_op_array) CLS_CC); |