* PHP 4 fix for the E_STRICT check

This commit is contained in:
Stig Bakken 2003-12-18 22:09:17 +00:00
parent 79848fa885
commit 9fd18029a9

View File

@ -33,7 +33,6 @@ ob_implicit_flush(true);
ini_set('track_errors', true);
ini_set('html_errors', false);
ini_set('magic_quotes_runtime', false);
error_reporting(E_ALL & ~E_NOTICE);
set_error_handler('error_handler');
$pear_package_version = "@pear_version@";
@ -265,7 +264,7 @@ function cmdHelp($command)
// }}}
function error_handler($errno, $errmsg, $file, $line, $vars) {
if (error_reporting() == 0 || ($errno & E_STRICT)) {
if ((defined('E_STRICT') && $errno & E_STRICT) || !error_reporting()) {
return; // @silenced error
}
$errortype = array (