if ($rebuild_xmlrpcvals)\r
{\r
// build the xmlrpc val out of the data received, and substitute it\r
if ($rebuild_xmlrpcvals)\r
{\r
// build the xmlrpc val out of the data received, and substitute it\r
// in case we got info about underlying php class, save it\r
// in the object we're rebuilding\r
if (isset($GLOBALS['_xh']['php_class']))\r
// in case we got info about underlying php class, save it\r
// in the object we're rebuilding\r
if (isset($GLOBALS['_xh']['php_class']))\r
- $r=&new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['http_error'], $this->errstr . ' (' . $this->errno . ')');\r
+ $r=new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['http_error'], $this->errstr . ' (' . $this->errno . ')');\r
((is_string($info) && strpos($info, 'OpenSSL') === null) || (is_array($info) && !isset($info['ssl_version']))))\r
{\r
$this->errstr='SSL unavailable on this install';\r
((is_string($info) && strpos($info, 'OpenSSL') === null) || (is_array($info) && !isset($info['ssl_version']))))\r
{\r
$this->errstr='SSL unavailable on this install';\r
if(!$result) /// @todo we should use a better check here - what if we get back '' or '0'?\r
{\r
$this->errstr='no response';\r
if(!$result) /// @todo we should use a better check here - what if we get back '' or '0'?\r
{\r
$this->errstr='no response';\r
- $resp=&new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['curl_fail'], $GLOBALS['xmlrpcstr']['curl_fail']. ': '. curl_error($curl));\r
+ $resp=new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['curl_fail'], $GLOBALS['xmlrpcstr']['curl_fail']. ': '. curl_error($curl));\r
- $result =& new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['multicall_error'], $GLOBALS['xmlrpcstr']['multicall_error']);\r
+ $result = new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['multicall_error'], $GLOBALS['xmlrpcstr']['multicall_error']);\r
$numParams = $msg->getNumParams();\r
$params = array();\r
for($i = 0; $i < $numParams; $i++)\r
{\r
$params[$i] = $msg->getParam($i);\r
}\r
$numParams = $msg->getNumParams();\r
$params = array();\r
for($i = 0; $i < $numParams; $i++)\r
{\r
$params[$i] = $msg->getParam($i);\r
}\r
- $call['params'] =& new xmlrpcval($params, 'array');\r
- $calls[] =& new xmlrpcval($call, 'struct');\r
+ $call['params'] = new xmlrpcval($params, 'array');\r
+ $calls[] = new xmlrpcval($call, 'struct');\r
- $response[$i] =& new xmlrpcresp($val[0], 0, '', 'phpvals');\r
+ $response[$i] = new xmlrpcresp($val[0], 0, '', 'phpvals');\r
- $r=&new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['http_error'], $GLOBALS['xmlrpcstr']['http_error']. ' (HTTPS via proxy error, tunnel connection possibly failed)');\r
+ $r=new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['http_error'], $GLOBALS['xmlrpcstr']['http_error']. ' (HTTPS via proxy error, tunnel connection possibly failed)');\r
{\r
$errstr= substr($data, 0, strpos($data, "\n")-1);\r
error_log('XML-RPC: xmlrpcmsg::parseResponse: HTTP error, got response: ' .$errstr);\r
{\r
$errstr= substr($data, 0, strpos($data, "\n")-1);\r
error_log('XML-RPC: xmlrpcmsg::parseResponse: HTTP error, got response: ' .$errstr);\r
- $r=&new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['http_error'], $GLOBALS['xmlrpcstr']['http_error']. ' (' . $errstr . ')');\r
+ $r=new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['http_error'], $GLOBALS['xmlrpcstr']['http_error']. ' (' . $errstr . ')');\r
if(!$data = decode_chunked($data))\r
{\r
error_log('XML-RPC: xmlrpcmsg::parseResponse: errors occurred when trying to rebuild the chunked data received from server');\r
if(!$data = decode_chunked($data))\r
{\r
error_log('XML-RPC: xmlrpcmsg::parseResponse: errors occurred when trying to rebuild the chunked data received from server');\r
- $r =& new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['dechunk_fail'], $GLOBALS['xmlrpcstr']['dechunk_fail']);\r
+ $r = new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['dechunk_fail'], $GLOBALS['xmlrpcstr']['dechunk_fail']);\r
- $r =& new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['decompress_fail'], $GLOBALS['xmlrpcstr']['decompress_fail']);\r
+ $r = new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['decompress_fail'], $GLOBALS['xmlrpcstr']['decompress_fail']);\r
- $r =& new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['cannot_decompress'], $GLOBALS['xmlrpcstr']['cannot_decompress']);\r
+ $r = new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['cannot_decompress'], $GLOBALS['xmlrpcstr']['cannot_decompress']);\r
// if user wants back raw xml, give it to him\r
if ($return_type == 'xml')\r
{\r
// if user wants back raw xml, give it to him\r
if ($return_type == 'xml')\r
{\r
- $r =& new xmlrpcresp($data, 0, '', 'xml');\r
+ $r = new xmlrpcresp($data, 0, '', 'xml');\r
$r->hdrs = $GLOBALS['_xh']['headers'];\r
$r->_cookies = $GLOBALS['_xh']['cookies'];\r
$r->raw_data = $raw_data;\r
$r->hdrs = $GLOBALS['_xh']['headers'];\r
$r->_cookies = $GLOBALS['_xh']['cookies'];\r
$r->raw_data = $raw_data;\r
- $r=&new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['invalid_return'], $GLOBALS['xmlrpcstr']['invalid_return'].' ('.$errstr.')');\r
+ $r=new xmlrpcresp(0, $GLOBALS['xmlrpcerr']['invalid_return'], $GLOBALS['xmlrpcstr']['invalid_return'].' ('.$errstr.')');\r
$GLOBALS['xmlrpcstr']['invalid_return'] . ' ' . $GLOBALS['_xh']['isf_reason']);\r
}\r
// third error check: parsing of the response has somehow gone boink.\r
$GLOBALS['xmlrpcstr']['invalid_return'] . ' ' . $GLOBALS['_xh']['isf_reason']);\r
}\r
// third error check: parsing of the response has somehow gone boink.\r
// something odd has happened\r
// and it's time to generate a client side error\r
// indicating something odd went on\r
// something odd has happened\r
// and it's time to generate a client side error\r
// indicating something odd went on\r
- $r=&new xmlrpcresp($v, 0, '', $return_type);\r
+ $r=new xmlrpcresp($v, 0, '', $return_type);\r
{\r
case 'string':\r
if (in_array('auto_dates', $options) && preg_match('/^[0-9]{8}T[0-9]{2}:[0-9]{2}:[0-9]{2}$/', $php_val))\r
{\r
case 'string':\r
if (in_array('auto_dates', $options) && preg_match('/^[0-9]{8}T[0-9]{2}:[0-9]{2}:[0-9]{2}$/', $php_val))\r
break;\r
// <G_Giunta_2001-02-29>\r
// Add support for encoding/decoding of booleans, since they are supported in PHP\r
case 'boolean':\r
break;\r
// <G_Giunta_2001-02-29>\r
// Add support for encoding/decoding of booleans, since they are supported in PHP\r
case 'boolean':\r
if (in_array('encode_php_objs', $options))\r
{\r
// let's save original class name into xmlrpcval:\r
if (in_array('encode_php_objs', $options))\r
{\r
// let's save original class name into xmlrpcval:\r
}\r
// catch "user function", "unknown type"\r
default:\r
// giancarlo pinerolo <ping@alt.it>\r
// it has to return\r
// an empty object in case, not a boolean.\r
}\r
// catch "user function", "unknown type"\r
default:\r
// giancarlo pinerolo <ping@alt.it>\r
// it has to return\r
// an empty object in case, not a boolean.\r
for($i=0; $i < count($GLOBALS['_xh']['params']); $i++)\r
{\r
$m->addParam($GLOBALS['_xh']['params'][$i]);\r
for($i=0; $i < count($GLOBALS['_xh']['params']); $i++)\r
{\r
$m->addParam($GLOBALS['_xh']['params'][$i]);\r