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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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.
> */

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to