PHP 4.0 Bug #7010: error_reporting(0);

From: Date: Wed, 04 Oct 2000 10:02:38 +0000
Subject: PHP 4.0 Bug #7010: error_reporting(0);
Groups: php.dev 
Request: Send a blank email to php-dev+get-34205@lists.php.net to get a copy of this message
From: joel.jacobson@mobigym.se Operating system: Linux 2.4.0-test7 PHP version: 4.0.2 PHP Bug Type: *Function Specific Bug description: error_reporting(0); Why does the following example produce an error message that is displayed in the web browser? <?php error_reporting(0); $test = 1/0; ?> But no error message is shown when I try $test = NO_SUCH_CONSTANT; The division by zero error is not displayed if I set display_errors to "Off" in php.ini. But I think that should be the same as error_reporting(0);, why isn't it? Thanks in advance. /Joel Jacobson

« previous php.dev (#34205) next »