From 9fd18029a904dfc7e3eda41bca50832f2cfabd5f Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Thu, 18 Dec 2003 22:09:17 +0000 Subject: [PATCH] * PHP 4 fix for the E_STRICT check --- pear/scripts/pearcmd.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pear/scripts/pearcmd.php b/pear/scripts/pearcmd.php index 52723e0e3f..28c4a04984 100644 --- a/pear/scripts/pearcmd.php +++ b/pear/scripts/pearcmd.php @@ -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 ( -- 2.40.0