Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute.c
| From: | php at hristov dot com | Date: | Mon, 26 Jan 2004 14:10:30 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute.c | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-2268@lists.php.net to get a copy of this message | ||
Andi,
a.php :
<?php
error_reporting(E_ALL);
$a = 1;
require('b.php');
echo "\n\$a = $a\n";
?>
b.php:
<?php
class a {
?>
Output (php a.php) (php5rc1-dev from 2-3 days ago):
andrey@poohie:~/test> php a.php
PHP Parse error: parse error, unexpected ';', expecting T_FUNCTION in
/home/andrey/test/b.php on line 3
$a = 1
andrey@poohie:~/test>
Andrey
Quoting Andi Gutmans <andi@zend.com>:
> What happened before? Did it just silently continue or did it fail later on?
> If the filename is available don't you want to print it in the error
> message?
>
> At 11:54 PM 1/25/2004 +0000, Ilia Alshanetsky wrote:
> >iliaa Sun Jan 25 18:54:12 2004 EDT
> >
> > Modified files:
> > /ZendEngine2 zend_execute.c
> > Log:
> > Fixed bug #26814 (On parse error include included file, terminate
> > execution script).
> >
> >
>
> >>http://cvs.php.net/diff.php/ZendEngine2/zend_execute.c?r1=1.589&r2=1.590&ty=uC
> >àbØÅî “g\P…â
> >Index: ZendEngine2/zend_execute.c
> >diff -u ZendEngine2/zend_execute.c:1.589 ZendEngine2/zend_execute.c:1.590
> >--- ZendEngine2/zend_execute.c:1.589 Sun Jan 25 08:32:02 2004
> >+++ ZendEngine2/zend_execute.c Sun Jan 25 18:54:12 2004
> >@@ -17,7 +17,7 @@
> >
> +----------------------------------------------------------------------+
> > */
> >
> >-/* $Id: zend_execute.c,v 1.589 2004/01/25 13:32:02 helly Exp $ */
> >+/* $Id: zend_execute.c,v 1.590 2004/01/25 23:54:12 iliaa Exp $ */
> >
> > #define ZEND_INTENSIVE_DEBUGGING 0
> >
> >@@ -3386,6 +3386,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
>
>