Error reporting enabled with XML header/footer.

This commit is contained in:
tomas 2004-11-25 17:13:32 +00:00
parent d5d7dff983
commit a0eba92d89
1 changed files with 4 additions and 4 deletions

View File

@ -23,11 +23,11 @@
Author : $Author: tomas $
Version : $Revision: 1.4 $
Version : $Revision: 1.5 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/xmlrpc/xrLocStor.php,v $
------------------------------------------------------------------------------*/
error_reporting(0);
#error_reporting(0);
ini_set("error_prepend_string", "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<methodResponse>
<fault>
@ -57,7 +57,7 @@ require_once '../LocStor.php';
function errHndl($errno, $errmsg, $filename, $linenum, $vars){
if($errno == 8 /*E_NOTICE*/) return;
$xr =& new xmlrpcresp(0, 805,
"ERROR:xrLoctor: $errno $errmsg ($filename:$linenum)\n");
"ERROR:xrLoctor: $errno $errmsg ($filename:$linenum)");
header("Content-type: text/xml");
echo $xr->serialize();
exit($errno);
@ -671,4 +671,4 @@ foreach($methods as $method=>$description){
);
}
$s=new xmlrpc_server( $defs );
?>
?>