From: Tomas V.V.Cox Date: Fri, 7 Jun 2002 08:04:05 +0000 (+0000) Subject: ws X-Git-Tag: php5_5_0~152 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7770b625ba1039a00f2e8a70ddbe3da0b8fd4ddd;p=php ws --- diff --git a/pear/scripts/pear.in b/pear/scripts/pear.in index d7d77a3e23..c16b475635 100644 --- a/pear/scripts/pear.in +++ b/pear/scripts/pear.in @@ -255,22 +255,22 @@ function error_handler($errno, $errmsg, $file, $line, $vars) { if (error_reporting() == 0) { 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" - ); - $prefix = $errortype[$errno]; - $file = basename($file); - print "\n$prefix: $errmsg in $file on line $line\n"; + $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" + ); + $prefix = $errortype[$errno]; + $file = basename($file); + print "\n$prefix: $errmsg in $file on line $line\n"; }