Re: Error Reporting help
| From: | Chris Edwards | Date: | Mon, 19 Jan 2004 14:34:18 +0000 |
| Subject: | Re: Error Reporting help | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175014@lists.php.net to get a copy of this message | ||
Thanks for all you replies, most of what you have suggested, I had already
tried, in vain, before joining the list.
I retried most of the combinations and still cannot get it to report syntax
errors. If I have errors, from say undefined variables, the error handler
catches those just fine.
Question: when I use the ini_set, does that stay set for the lifetime of the
script executing or is it set for good? The reason I ask, is I wonder if the
permissions on the 'Ini" file is blocking me from modifying it.
All help is much appreciated.
"Jason Wong" <php-general@gremlins.biz> wrote in message
news:200401191350.27816.php-general@gremlins.biz...
> On Monday 19 January 2004 07:30, Chris Edwards wrote:
>
> > It's almost like it parses it before it tries to execute any lines and
if a
> > syntax error occurs, it doesn't execute any of the script.
>
> That's right.
>
> > The prior version would run up until the syntax error and then give you
the
> > line if error, which usually meant the syntax error was on the previous
> > line.
>
> I don't think any version of PHP has ever done that.
>
> More likely your prior version of PHP had "display_errors" enabled. In
general
> you can enable and display all errors using:
>
> error_reporting (E_ALL);
> ini_set('display_errors', 1);
>
> But if "display_errors" (in php.ini) is disabled then syntax errors will
not
> be displayed -- they can only be viewed in the error log.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> ------------------------------------------
> /*
> Most people will listen to your unreasonable demands, if you'll consider
> their unacceptable offer.
> */