]> granicus.if.org Git - php/commitdiff
- Change if() to while() to make sure we skip enough opcodes
authorAndi Gutmans <andi@php.net>
Fri, 25 May 2001 09:46:48 +0000 (09:46 +0000)
committerAndi Gutmans <andi@php.net>
Fri, 25 May 2001 09:46:48 +0000 (09:46 +0000)
Zend/zend_compile.c

index 1d706080831e157e8ade81c8d84c61074086d3a3..5c101d97c1cb5cdac6e50c14eeb2129ddebe09d3 100644 (file)
@@ -670,7 +670,7 @@ void zend_do_free(znode *op1 CLS_DC)
        } else if (op1->op_type==IS_VAR) {
                zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1];
 
-               if (opline->opcode == ZEND_END_SILENCE || opline->opcode == ZEND_EXT_FCALL_END) {
+               while (opline->opcode == ZEND_END_SILENCE || opline->opcode == ZEND_EXT_FCALL_END) {
                        opline--;
                }
                if (opline->result.op_type == op1->op_type