Re: [ZEND-ENGINE-CVS] cvs: Zend(PHP_4_3) / zend_execute.c

From: Date: Mon, 26 Jan 2004 14:16:42 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: Zend(PHP_4_3) / zend_execute.c
References: 1 2  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2271@lists.php.net to get a copy of this message
On January 26, 2004 03:13 am, you wrote: > It wasn't documented but this breaks BC since there was a way of detection > whether a script is broken and the error can be caught. This issue is long > known and why we change the behavior now? I do not believe this is a BC issue, if an include had a fatal error let's say a call to an undefied function it would terminate execution of the entire script. Why should parse errors be any different? The reasons for the change is because the current behaviour is broken, hence it should (and was) fixed. Ilia > > > Andrey > > Ilia Alshanetsky wrote: > > iliaa Sun Jan 25 18:54:28 2004 EDT > > > > Modified files: (Branch: PHP_4_3) > > /Zend zend_execute.c > > Log: > > MFH: Fixed bug #26814 (On parse error include included file, terminate > > execution script). > > > > > > > > http://cvs.php.net/diff.php/Zend/zend_execute.c?r1=1.316.2.26&r2=1.316.2. > >27&ty=u Index: Zend/zend_execute.c > > diff -u Zend/zend_execute.c:1.316.2.26 Zend/zend_execute.c:1.316.2.27 > > --- Zend/zend_execute.c:1.316.2.26 Fri Dec 5 04:20:48 2003 > > +++ Zend/zend_execute.c Sun Jan 25 18:54:28 2004 > > @@ -2148,6 +2148,9 @@ > > case ZEND_INCLUDE: > > case ZEND_REQUIRE: > > new_op_array = > > compile_filename(EX(opline)->op2.u.constant.value.lval, inc_filename > > TSRMLS_CC); + if (!new_op_array) { > > + zend_error(E_ERROR, "Parse error inside included file."); > > + } > > break; > > case ZEND_EVAL: { > > char *eval_desc = > > zend_make_compiled_string_description("eval()'d code" TSRMLS_CC);

« previous php.zend-engine.cvs (#2271) next »