Re: [PHP4BETA] silent exit on parse-error
| From: | Teodor Cimpoesu | Date: | Tue, 18 Jan 2000 12:49:36 +0000 |
| Subject: | Re: [PHP4BETA] silent exit on parse-error | ||
| References: | 1 2 3 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9227@lists.php.net to get a copy of this message | ||
Hartmut Holzgraefe wrote:
>
> Teodor Cimpoesu wrote:
>
> > Hartmut Holzgraefe wrote:
> > >
> > > i can't reproduce this one with a simple test case, but
> > >
> > > in my current application parse errors inside of include files
> > > ( especially missing or additional brackets )
> > > sometimes leave me with a "document comntains no data" message
> > > and without any message in error_log or elsewhere
> > >
> > > the normal behavior ( as reproduced in small test cases ) would
> > > be to report the parse error, deny execution of the included code
> > > and continue just behind the include-statement
> > >
> > > here instead excecution of the hole script seems to be silently
> > > terminating .....
> > >
> > > ... any ideas anyone ? ...
> > What's your error reporting level? [see php.ini]
> > More exactly the "Error handling and logging".
> >
>
> error_reporting = 15
> display_errors = Off
> log_errors = On
> track_errors = On
>
> Sorry, but this is not the cause of my problem
>
> i _do_ get error messages in all the test cases i tried to create
> and execution continues after the include-statement that failed
>
> but in my real application the script just "disappears" ...
>
> ... and finding out why ( syntax error in included file ) was rather by
> accident
> ( and the help of good old emacs autoindent and syntax/parent highlight
> mode )
[cheap tip]
*** compile php as cgi and use it as `precompiler' ;-)
just # /usr/bin/php -q include_file.php
and it will show you any parse errors!
--
CIMPOESU Teodor, Web Programmer
@ DIGICOM S.A. Bucharest, Romania
@ Internet, site development
@ teo@digiro.net , +(401)-330.47.28
official home page ~ http://www.digiro.net/
Internet web page ~ http://internet.digiro.net/