]> granicus.if.org Git - php/commitdiff
Fix bug #21800 - initialize opcode handlers in interactive mode
authorStanislav Malyshev <stas@php.net>
Sun, 15 Jun 2003 11:44:30 +0000 (11:44 +0000)
committerStanislav Malyshev <stas@php.net>
Sun, 15 Jun 2003 11:44:30 +0000 (11:44 +0000)
Zend/zend_execute_API.c

index 308d5f4751c94b9870e55c8e980c12a61a263007..c76cb2d5432ba0085e22518606f8891b7c45ce23 100644 (file)
@@ -883,7 +883,8 @@ void execute_new_code(TSRMLS_D)
             opline->op2.u.constant.is_ref = 1;
             opline->op2.u.constant.refcount = 2;
         }
-        opline++;
+               opline->handler = zend_opcode_handlers[opline->opcode];
+               opline++;
     }
 
        EG(return_value_ptr_ptr) = &local_retval;