cvs: pear /XML_RPC RPC.php Server.php

From: Date: Wed, 06 Apr 2005 15:19:51 +0000
Subject: cvs: pear /XML_RPC RPC.php Server.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-30980@lists.php.net to get a copy of this message
danielc Wed Apr 6 11:19:51 2005 EDT Modified files: /pear/XML_RPC RPC.php Server.php Log: * Coding Standards. http://cvs.php.net/diff.php/pear/XML_RPC/RPC.php?r1=1.63&r2=1.64&ty=u Index: pear/XML_RPC/RPC.php diff -u pear/XML_RPC/RPC.php:1.63 pear/XML_RPC/RPC.php:1.64 --- pear/XML_RPC/RPC.php:1.63 Wed Apr 6 10:56:44 2005 +++ pear/XML_RPC/RPC.php Wed Apr 6 11:19:50 2005 @@ -32,7 +32,7 @@ * @author Martin Jansen <mj@php.net> * @author Daniel Convissor <danielc@php.net> * @copyright 1999-2001 Edd Dumbill - * @version CVS: $Id: RPC.php,v 1.63 2005/04/06 14:56:44 danielc Exp $ + * @version CVS: $Id: RPC.php,v 1.64 2005/04/06 15:19:50 danielc Exp $ * @link http://pear.php.net/package/XML_RPC */ @@ -1197,7 +1197,7 @@ // gotta get rid of headers here - if ((!$hdrfnd) && ($brpos = strpos($data,"\r\n\r\n"))) { + if (!$hdrfnd && ($brpos = strpos($data,"\r\n\r\n"))) { $XML_RPC_xh[$parser]['ha'] = substr($data, 0, $brpos); $data = substr($data, $brpos + 4); $hdrfnd = 1; @@ -1212,7 +1212,7 @@ if (!xml_parse($parser_resource, $data, sizeof($data))) { // thanks to Peter Kocks <peter.kocks@baygate.com> - if ((xml_get_current_line_number($parser_resource)) == 1) { + if (xml_get_current_line_number($parser_resource) == 1) { $errstr = 'XML error at line 1, check URL'; } else { $errstr = sprintf('XML error: %s at line %d', @@ -1510,7 +1510,8 @@ /** * @return mixed the current value */ - function getval() { + function getval() + { // UNSTABLE global $XML_RPC_BOOLEAN, $XML_RPC_Base64; @@ -1600,7 +1601,8 @@ * * @return string the formatted date */ -function XML_RPC_iso8601_encode($timet, $utc = 0) { +function XML_RPC_iso8601_encode($timet, $utc = 0) +{ if (!$utc) { $t = strftime('%Y%m%dT%H:%M:%S', $timet); } else { @@ -1628,7 +1630,8 @@ * * @return int the unix timestamp of the date submitted */ -function XML_RPC_iso8601_decode($idate, $utc = 0) { +function XML_RPC_iso8601_decode($idate, $utc = 0) +{ $t = 0; if (ereg('([0-9]{4})([0-9]{2})([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})', $idate, $regs)) { if ($utc) { @@ -1682,9 +1685,10 @@ * * @author Dan Libby <dan@libby.com> */ -function XML_RPC_encode($php_val) { +function XML_RPC_encode($php_val) +{ global $XML_RPC_Boolean, $XML_RPC_Int, $XML_RPC_Double, $XML_RPC_String, - $XML_RPC_Array, $XML_RPC_Struct; + $XML_RPC_Array, $XML_RPC_Struct; $type = gettype($php_val); $XML_RPC_val = new XML_RPC_Value; http://cvs.php.net/diff.php/pear/XML_RPC/Server.php?r1=1.19&r2=1.20&ty=u Index: pear/XML_RPC/Server.php diff -u pear/XML_RPC/Server.php:1.19 pear/XML_RPC/Server.php:1.20 --- pear/XML_RPC/Server.php:1.19 Wed Apr 6 10:56:44 2005 +++ pear/XML_RPC/Server.php Wed Apr 6 11:19:50 2005 @@ -31,7 +31,7 @@ * @author Stig Bakken <stig@php.net> * @author Martin Jansen <mj@php.net> * @copyright 1999-2001 Edd Dumbill - * @version CVS: $Id: Server.php,v 1.19 2005/04/06 14:56:44 danielc Exp $ + * @version CVS: $Id: Server.php,v 1.20 2005/04/06 15:19:50 danielc Exp $ * @link http://pear.php.net/package/XML_RPC */ @@ -428,7 +428,7 @@ $sr = $this->verifySignature($m, $dmap[$methName]['signature'] ); } - if ( (!isset($dmap[$methName]['signature'])) || $sr[0]) { + if (!isset($dmap[$methName]['signature']) || $sr[0]) { // if no signature or correct signature if ($sysCall) { $r = call_user_func($dmap[$methName]['function'], $this, $m); @@ -460,7 +460,8 @@ * * Useful for debugging. */ - function echoInput() { + function echoInput() + { global $HTTP_RAW_POST_DATA; $r = new XML_RPC_Response(0);

« previous php.pear.cvs (#30980) next »