Re: Error Reporting help
| From: | Chris Edwards | Date: | Mon, 19 Jan 2004 19:44:59 +0000 |
| Subject: | Re: Error Reporting help | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175078@lists.php.net to get a copy of this message | ||
Here's a snippet from my PHI_INI
; - Show all errors
;
error_reporting = E_ALL
;error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_CORE_WARNING &
~E_USER_WARNING & ~E_USER_NOTICE & ~E_COMPILE_WARNING
display_errors = On
The commented out error_reporting was the original setting and
"display_errors" was "Off"
I changed them to the values you see above. When I execute my script and use
init_get() the values appear to be right, but do I need to do something to
get PHP to actually work off of these setting once they have been changed,
i.e. some kind of refresh
Thanks
"Jason Wong" <php-general@gremlins.biz> wrote in message
news:200401200157.17312.php-general@gremlins.biz...
> On Monday 19 January 2004 22:34, Chris Edwards wrote:
>
> > 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.
>
> Again:
>
> > > 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.
>
> IOW have a look at the output of phpinfo(), if "display_errors" is off,
then
> no matter what combinations you try you will NOT be able to see syntax
> errors!
>
> > Question: when I use the ini_set, does that stay set for the lifetime of
> > the script executing or is it set for good?
>
> Only during the execution of the script.
>
> --
> 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
> ------------------------------------------
> /*
> Wouldn't this be a great world if being insecure and desperate were a
turn-on?
> -- "Broadcast News"
> */