Re: baffled on error_reporting

From: Date: Mon, 27 Oct 2003 07:44:34 +0000
Subject: Re: baffled on error_reporting
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-167686@lists.php.net to get a copy of this message
This should be reported at least as a documentation bug (if it's not already mentioned, I'm lazy to search :) Gerard Samuel wrote:
Yes I know about turning off error reporting, but what happens after that point. An example. -- common.php -- <?php // php.ini error reporting is set to E_ALL error_reporting( 0 ); // sets it to 0 var_dump(error_reporting()); // Returns 0 ?> -- foo.php -- <?php @require('./common.php'); // Here is the problem var_dump(error_reporting()); // Returns 2047 ?> If I remove @ from require('./common.php'); in foo.php, the var_dump() then correctly reports it as 0 instead of 2047 Kinda goofy if you ask me...


« previous php.general (#167686) next »