X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debugger%2Faction.php;h=0345798e716b35e39864b8ea39a354fa5ff9116d;hb=da824472c0045c183f40792b8c760c11d024005d;hp=69f66e0c26f88fa53388a9a0bd1a616ea084f5f1;hpb=e6515c749fc5b792992926ce243caec277465b29;p=plcapi.git diff --git a/debugger/action.php b/debugger/action.php index 69f66e0..0345798 100644 --- a/debugger/action.php +++ b/debugger/action.php @@ -226,7 +226,7 @@ if ($action) { } } } else { - $msg[0]->payload = $msg[0]->xml_header() . + $msg[0]->payload = $msg[0]->xml_header($inputcharset) . '' . $method . "\n" . $payload . "\n" . $msg[0]->xml_footer(); @@ -248,8 +248,7 @@ if ($action) { echo '

Debug info:

'; } /// @todo use ob_start instead $resp = array(); - $mtime = explode(' ', microtime()); - $time = (float)$mtime[0] + (float)$mtime[1]; + $time = microtime(true); foreach ($msg as $message) { // catch errors: for older xmlrpc libs, send does not return by ref @$response = $client->send($message, $timeout, $httpprotocol); @@ -258,8 +257,7 @@ if ($action) { break; } } - $mtime = explode(' ', microtime()); - $time = (float)$mtime[0] + (float)$mtime[1] - $time; + $time = microtime(true) - $time; if ($debug) { echo "
\n"; }