error in error_reporting() !!

From: Date: Fri, 25 Feb 2000 20:26:34 +0000
Subject: error in error_reporting() !!
Groups: php.version4 
Request: Send a blank email to php-version4+get-10997@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. Isn't this a very serious bug? It's possible that every httpd child retains it's own value: I spent a while checking the current level, and it changed among the values that are set by different scripts on the server. I guess I hit different httpd processes at different times. I definitely assume that every php script is supposed to have the default error_reporting level set in php.ini, if not explicitly defining its' own level! /Johan Ekenberg

« previous php.version4 (#10997) next »