Re: [ZEND-ENGINE-CVS] cvs: Zend(PHP_4_3) / zend_execute.c
| From: | Andrey Hristov | Date: | Mon, 26 Jan 2004 08:13:41 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: Zend(PHP_4_3) / zend_execute.c | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-2260@lists.php.net to get a copy of this message | ||
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?
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);