logo       

cvs: peclweb /public_html xmlrpc.php: msg#00246

php.pecl.cvs

Subject: cvs: peclweb /public_html xmlrpc.php

cellog Thu Jul 28 17:00:47 2005 EDT

Modified files:
/peclweb/public_html xmlrpc.php
Log:
ignore E_STRICT if a test server is running PHP5

http://cvs.php.net/diff.php/peclweb/public_html/xmlrpc.php?r1=1.19&r2=1.20&ty=u
Index: peclweb/public_html/xmlrpc.php
diff -u peclweb/public_html/xmlrpc.php:1.19 peclweb/public_html/xmlrpc.php:1.20
--- peclweb/public_html/xmlrpc.php:1.19 Mon Nov 15 13:19:12 2004
+++ peclweb/public_html/xmlrpc.php Thu Jul 28 17:00:46 2005
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: xmlrpc.php,v 1.19 2004/11/15 18:19:12 mj Exp $
+ $Id: xmlrpc.php,v 1.20 2005/07/28 21:00:46 cellog Exp $
*/

if (!isset($HTTP_RAW_POST_DATA)) {
@@ -92,9 +92,12 @@
header('Content-length: '.strlen($response));
print $response;

+if (!defined('E_STRICT')) {
+ define('E_STRICT', 2048);
+}
function xmlrpc_error_handler($errno, $errmsg, $file, $line, $vars)
{
- if (error_reporting() == 0) {
+ if (error_reporting() == 0 || $errno == E_STRICT) {
return;
}
static $errortype = array (



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise