From: Zeev Suraski Date: Sun, 6 May 2001 15:00:58 +0000 (+0000) Subject: Hear hear, interactive mode is finally showing some progress: X-Git-Tag: php-4.0.6RC1~115 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=686eab894c3df4447216a50073b1a22cfb0632a0;p=php Hear hear, interactive mode is finally showing some progress: - Support function calls - Fix crash bug --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 439d0f34d4..c3a74bc12a 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -762,6 +762,10 @@ void zend_do_end_function_declaration(znode *function_token CLS_DC) zend_do_extended_info(CLS_C); zend_do_return(NULL, 0 CLS_CC); pass_two(CG(active_op_array)); +#if SUPPORT_INTERACTIVE + CG(active_op_array)->start_op_number = 0; + CG(active_op_array)->end_op_number = CG(active_op_array)->last; +#endif CG(active_op_array) = function_token->u.op_array; /* Pop the switch and foreach seperators */ diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 1757d8bfb1..ecc0846f85 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -568,7 +568,7 @@ void execute_new_code(CLS_D) } opline=CG(active_op_array)->opcodes + CG(active_op_array)->start_op_number; - end=opline+CG(active_op_array)->last; + end=CG(active_op_array)->opcodes+CG(active_op_array)->last; while (oplineop1.op_type==IS_CONST) {