RE: [PHP4BETA] error in error_reporting() !!
| From: | Mike Robinson | Date: | Fri, 25 Feb 2000 21:44:23 +0000 |
| Subject: | RE: [PHP4BETA] error in error_reporting() !! | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-11004@lists.php.net to get a copy of this message | ||
> I was playing around with error_reporting() in
> PHP4 beta 4, and found very strange behaviour!
>
> Using PHP as an Apache module, it seems that
> Apache retains the value set by error_reporting()
> between requests. This means that whatever
> error reporting level is set within a script,
> it's inherited by all subsequent php scripts
> until changed by another error_reporting() call.
I think php3 behaves like this as well.
I always thought this was normal.
I've had to monitor the default settings on some hosts to make
sure I was setting it back to the right level, a pain.
Alternatively, being able to do error_reporting(default)
would be handy.
Mike Robinson