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


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



Reply via email to