]> granicus.if.org Git - php/commitdiff
- MFH
authorPierre Joye <pajoye@php.net>
Mon, 26 Jan 2004 01:34:03 +0000 (01:34 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 26 Jan 2004 01:34:03 +0000 (01:34 +0000)
pear/scripts/pear.bat
pear/scripts/pearcmd.php

index a605c39583d7a3c3048c927c8217a3f11e7b57bd..31c13d990caa22826db849e9a3073122e73e0454 100755 (executable)
@@ -1,7 +1,7 @@
 @ECHO OFF
 
 REM ----------------------------------------------------------------------
-REM PHP version 4.0
+REM PHP version 4
 REM ----------------------------------------------------------------------
 REM Copyright (c) 1997-2004 The PHP Group
 REM ----------------------------------------------------------------------
@@ -16,7 +16,7 @@ REM ----------------------------------------------------------------------
 REM  Authors:     Alexander Merz (alexmerz@php.net)
 REM ----------------------------------------------------------------------
 REM
-REM  $Id: pear.bat,v 1.10.4.9 2003/10/20 15:51:46 cox Exp $
+REM  $Id: pear.bat,v 1.18 2004/01/08 17:33:14 sniper Exp $
 
 REM change this lines to match the paths of your system
 REM -------------------
index 038ee8f14fe3ee67c0248d1562be536e9fd34784..b53e6f485406e57a0f869dc544c025716ea03a8d 100644 (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,21 +264,21 @@ function cmdHelp($command)
 // }}}
 
 function error_handler($errno, $errmsg, $file, $line, $vars) {
-    if (error_reporting() == 0) {
+    if ((defined('E_STRICT') && $errno & E_STRICT) || !error_reporting()) {
         return; // @silenced error
     }
     $errortype = array (
-        1   =>  "Error",
-        2   =>  "Warning",
-        4   =>  "Parsing Error",
-        8   =>  "Notice",
-        16  =>  "Core Error",
-        32  =>  "Core Warning",
-        64  =>  "Compile Error",
-        128 =>  "Compile Warning",
-        256 =>  "User Error",
-        512 =>  "User Warning",
-        1024=>  "User Notice"
+        E_ERROR   =>  "Error",
+        E_WARNING   =>  "Warning",
+        E_PARSE   =>  "Parsing Error",
+        E_NOTICE   =>  "Notice",
+        E_CORE_ERROR  =>  "Core Error",
+        E_CORE_WARNING  =>  "Core Warning",
+        E_COMPILE_ERROR  =>  "Compile Error",
+        E_COMPILE_WARNING =>  "Compile Warning",
+        E_USER_ERROR =>  "User Error",
+        E_USER_WARNING =>  "User Warning",
+        E_USER_NOTICE =>  "User Notice"
     );
     $prefix = $errortype[$errno];
     $file = basename($file);