Re: Warnings in include files suddenly treated as fatal
| From: | Ilia Alshanetsky | Date: | Fri, 30 Jan 2004 19:17:02 +0000 |
| Subject: | Re: Warnings in include files suddenly treated as fatal | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7436@lists.php.net to get a copy of this message | ||
The oirignal parse error messages not only tells you the filename but also the
line where the parse error occurs. The 2nd error (the one you referring to)
will tell you on which line the 'broken' file is being included.
Ex:
Parse error: parse error in /home/rei/PHP_CVS/php4/BUILD/inc2.inc on line 3
Fatal error: Parse error inside included file.
in /home/rei/PHP_CVS/php4/BUILD/inc1.php on line 2
Ilia
On January 30, 2004 02:14 pm, Martin Jansen wrote:
> On Fri Jan 30, 2004 at 01:3752PM -0500, Ilia Alshanetsky wrote:
> > + zend_error(E_ERROR, "Parse error inside included file.");
>
> Is there any chance to include the name of the included file here?