Re: baffled on error_reporting

From: Date: Mon, 27 Oct 2003 00:28:48 +0000
Subject: Re: baffled on error_reporting
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167659@lists.php.net to get a copy of this message
On Sunday 26 October 2003 07:12 pm, Dan McCullough wrote: > No I believe that is a feature the ability to turn off error reporting. > You can do the same with mysql functions. > > @mysql_ 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 (#167659) next »