cvs: pearweb /public_html xmlrpc.php
| From: | Stig Bakken | Date: | Sat, 30 Mar 2002 23:56:44 +0000 |
| Subject: | cvs: pearweb /public_html xmlrpc.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2919@lists.php.net to get a copy of this message | ||
ssb Sat Mar 30 18:56:44 2002 EDT
Modified files:
/pearweb/public_html xmlrpc.php
Log:
* make xmlrpc_error_handler ignore silenced errors
Index: pearweb/public_html/xmlrpc.php
diff -u pearweb/public_html/xmlrpc.php:1.11 pearweb/public_html/xmlrpc.php:1.12
--- pearweb/public_html/xmlrpc.php:1.11 Sat Mar 30 16:55:45 2002
+++ pearweb/public_html/xmlrpc.php Sat Mar 30 18:56:44 2002
@@ -16,7 +16,10 @@
function xmlrpc_error_handler($errno, $errmsg, $file, $line, $vars)
{
- $errortype = array (
+ if (error_reporting() == 0) {
+ return;
+ }
+ static $errortype = array (
1 => "Error",
2 => "Warning",
4 => "Parsing Error",
@@ -29,7 +32,6 @@
512 => "User Warning",
1024=> "User Notice"
);
-// if ($errno & 8) return; // ignore notices
$prefix = $errortype[$errno];
$file = basename($file);
$error_message = "$file:$line: $prefix: $errmsg";