Skip to content

Commit

Permalink
Merge pull request #1312 from petsagouris/fix-xmlrpc-typos
Browse files Browse the repository at this point in the history
Fixing some typos in the xmlrpc class
  • Loading branch information
narfbg committed May 2, 2012
2 parents 41d31cc + 306b378 commit 87a4b54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/libraries/Xmlrpc.php
Expand Up @@ -436,7 +436,7 @@ public function send($msg)
*/ */
public function sendPayload($msg) public function sendPayload($msg)
{ {
$fp = @fsockopen($this->server, $this->port,$this->errno, $this->errstr, $this->timeout); $fp = @fsockopen($this->server, $this->port,$this->errno, $this->errstring, $this->timeout);


if ( ! is_resource($fp)) if ( ! is_resource($fp))
{ {
Expand All @@ -458,7 +458,7 @@ public function sendPayload($msg)
.'Content-Length: '.strlen($msg->payload).$r.$r .'Content-Length: '.strlen($msg->payload).$r.$r
.$msg->payload; .$msg->payload;


if ( ! fputs($fp, $op, strlen($op))) if ( ! fwrite($fp, $op, strlen($op)))
{ {
error_log($this->xmlrpcstr['http_error']); error_log($this->xmlrpcstr['http_error']);
return new XML_RPC_Response(0, $this->xmlrpcerr['http_error'], $this->xmlrpcstr['http_error']); return new XML_RPC_Response(0, $this->xmlrpcerr['http_error'], $this->xmlrpcstr['http_error']);
Expand Down Expand Up @@ -1076,7 +1076,7 @@ public function closing_tag($the_parser, $name)
// we have an I4/INT // we have an I4/INT
// we must check that only 0123456789-<space> are characters here // we must check that only 0123456789-<space> are characters here
$this->xh[$the_parser]['value'] = preg_match('/^[+-]?[0-9\t ]+$/', $this->xh[$the_parser]['ac']) $this->xh[$the_parser]['value'] = preg_match('/^[+-]?[0-9\t ]+$/', $this->xh[$the_parser]['ac'])
? (int) $this->xh[$the_parset]['ac'] ? (int) $this->xh[$the_parser]['ac']
: 'ERROR_NON_NUMERIC_FOUND'; : 'ERROR_NON_NUMERIC_FOUND';
} }
$this->xh[$the_parser]['ac'] = ''; $this->xh[$the_parser]['ac'] = '';
Expand Down

0 comments on commit 87a4b54

Please sign in to comment.