#29926 [Bgs]: display_errors setting ignored

From: Date: Wed, 01 Sep 2004 12:32:35 +0000
Subject: #29926 [Bgs]: display_errors setting ignored
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-65567@lists.php.net to get a copy of this message
ID: 29926 User updated by: scott at slerman dot net Reported By: scott at slerman dot net Status: Bogus Bug Type: *Configuration Issues Operating System: Fedora Core 2 PHP Version: 5.0.1 New Comment: Good point. I had checked phpinfo(), and it said error_reporting was 4095, so I figured it couldn't have been that. I discovered a .htaccess file that was setting error_reporting to 2048 (which, in my own defense, I don't remember ever creating). Will remember this next time. Previous Comments: ------------------------------------------------------------------------ [2004-09-01 08:00:17] philip@php.net Which errors are shown (error level) has to do with error_reporting, not display_errors. ------------------------------------------------------------------------ [2004-09-01 05:51:42] scott at slerman dot net Description: ------------ The php.ini setting display_errors seems to be ignored; no errors are displayed, even if display_errors is turned on. Reproduce code: --------------- <?php echo ini_get("display_errors") . "<br/>"; echo $foo . "bar"; $foo[bar] = "phpinfo()"; ?> Expected result: ---------------- There should be warning messages about $foo being undefined and the constant "bar" being undefined. Actual result: -------------- Output is: 1 bar As far as I know, the first line being 1 means that display_errors is on. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29926&edit=1

« previous php.bugs (#65567) next »