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

From: Date: Tue, 27 Jan 2004 13:48:59 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: Zend(PHP_4_3) / zend_execute.c
References: 1 2 3 4 5 6 7  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2275@lists.php.net to get a copy of this message
Ilia, can you revert the patch from the PHP_4_3 branch and I will add an entry to the thin changes readme file. Thanks, Andrey Quoting Wez Furlong <wez@thebrainroom.com>: > Patch should not go into 4.3 > I've seen scripts that rely on this behaviour. > > --Wez. > > ----- Original Message ----- > From: "Jani Taskinen" <sniper@iki.fi> > To: "Markus Fischer" <mfischer@gjat.josefine.at> > Cc: <php@hristov.com>; <zend-engine-cvs@lists.php.net> > Sent: Monday, January 26, 2004 12:00 PM > Subject: Re: [ZEND-ENGINE-CVS] cvs: Zend(PHP_4_3) / zend_execute.c > > > > > > Or the change should apply only to require*() ? > > > > --Jani > > > > > > > > On Mon, 26 Jan 2004, Markus Fischer wrote: > > > > > I'm not exactly sure whether this change affects this behaviour, so > > > I give a little example of what I think will change > > > > > > If script A includes script B, and script B has a serious error, > > > what will happen now? > > > > > > Before patch: > > > script B will abort in the middle, however script A continues after > > > the include/require line > > > > > > After patch: > > > errornous (sp?) script B will completely stop execute of the current > > > flow > > > > > > I am aware of software which relies on this feature. Maybe making > > > this E_STRICTable? > > > > > > - Markus > > > > > >On Mon, Jan 26, 2004 at 06:14:39AM -0500, php@hristov.com wrote : > > >> Breaks software that relies on the behavior that require returns 1 if > everything > > >> went fine and 0 on error. Of course lint-ing can be done (and should > be) at the > > >> non-staging server however having this is quite ok. The software of > course can > > >> decide that it should die() on such an error with die(). The old > behavior gives > > >> more power in the hands of the developers. > > >> > > >> > > >> Andrey > > >> > > >> Quoting Jani Taskinen <sniper@iki.fi>: > > >> > > >> > On Mon, 26 Jan 2004, Andrey Hristov 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? > > >> > > > >> > Huh? Exactly WHAT does this break? :) > > >> > > > >> > --Jani > > >> > > > >> > > > >> > > > > >> > >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); > > >> > >> > > >> > > > > >> > > > > >> > > > >> > -- > > >> > Zend Engine CVS Mailing List (http://cvs.php.net/) > > >> > To unsubscribe, visit: > > >> > http://www.php.net/unsub.php > > >> > > > >> > > > >> > > >> -- > > >> Zend Engine CVS Mailing List (http://cvs.php.net/) > > >> To unsubscribe, visit: > > >> http://www.php.net/unsub.php > > >> > > > > > > > > > > -- > > > https://www.paypal.com/xclick/business=sniper@php.net&no_note=1&tax=0&currency_code=EUR > > > > > > -- > > Zend Engine CVS Mailing List (http://cvs.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > >

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