summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas V.V.Cox <cox@php.net>2002-06-07 08:04:05 +0000
committerTomas V.V.Cox <cox@php.net>2002-06-07 08:04:05 +0000
commit7770b625ba1039a00f2e8a70ddbe3da0b8fd4ddd (patch)
tree7b828b692fee3465a557546ce5c919c8a48438ad
parent5956656864d1f44280bcdbbb311529ad12e32f99 (diff)
downloadphp-git-7770b625ba1039a00f2e8a70ddbe3da0b8fd4ddd.tar.gz
ws
-rw-r--r--pear/scripts/pear.in32
1 files changed, 16 insertions, 16 deletions
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";
}