Bug #11891 Updated: error_reporting option broken/changed

From: Date: Thu, 13 Dec 2001 11:26:22 +0000
Subject: Bug #11891 Updated: error_reporting option broken/changed
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-73519@lists.php.net to get a copy of this message
ID: 11891 Updated by: sander Reported By: vejrum@doek.dk Old Status: Feedback Status: Closed Bug Type: PHP options/info functions Operating System: Linux (Cobalt RaQ3) PHP Version: 4.0.6 New Comment: No feedback. Closing. Previous Comments: ------------------------------------------------------------------------ [2001-11-18 19:50:10] sniper@php.net Are you sure your php.ini file is read by PHP ? Try setting the error_reporting in the script: <?php error_reporting(E_ALL & ~E_NOTICE); echo $test; ?> ------------------------------------------------------------------------ [2001-07-04 16:38:57] vejrum@doek.dk Argh - "and same result with:" should be: error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR ------------------------------------------------------------------------ [2001-07-04 16:36:08] vejrum@doek.dk With PHP 4.0.1 this worked fine - warnings for undefined variables were not displayed: error_reporting = E_ALL & ~E_NOTICE With PHP 4.0.6 this does not seem to work anymore - warnings for undefined variables are now displayed - and same result with: error_reporting = E_ALL & ~E_NOTICE I only seem to be able to get rid of the warnings for undefined variables by not displaying errors at all: display_errors = Off ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=11891&edit=1

« previous php.dev (#73519) next »