Skip to content

Commit 9fd1802

Browse files
committed
* PHP 4 fix for the E_STRICT check
1 parent 79848fa commit 9fd1802

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pear/scripts/pearcmd.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
ini_set('track_errors', true);
3434
ini_set('html_errors', false);
3535
ini_set('magic_quotes_runtime', false);
36-
error_reporting(E_ALL & ~E_NOTICE);
3736
set_error_handler('error_handler');
3837

3938
$pear_package_version = "@pear_version@";
@@ -265,7 +264,7 @@ function cmdHelp($command)
265264
// }}}
266265

267266
function error_handler($errno, $errmsg, $file, $line, $vars) {
268-
if (error_reporting() == 0 || ($errno & E_STRICT)) {
267+
if ((defined('E_STRICT') && $errno & E_STRICT) || !error_reporting()) {
269268
return; // @silenced error
270269
}
271270
$errortype = array (

0 commit comments

Comments
 (0)