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...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to