Browse files

Merge pull request #1312 from petsagouris/fix-xmlrpc-typos

Fixing some typos in the xmlrpc class
  • Loading branch information...
2 parents 41d31cc + 306b378 commit 87a4b544da246f10086129da9c5e48e27ee47810 @narfbg narfbg committed May 2, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 system/libraries/Xmlrpc.php
View
6 system/libraries/Xmlrpc.php
@@ -436,7 +436,7 @@ public function send($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))
{
@@ -458,7 +458,7 @@ public function sendPayload($msg)
.'Content-Length: '.strlen($msg->payload).$r.$r
.$msg->payload;
- if ( ! fputs($fp, $op, strlen($op)))
+ if ( ! fwrite($fp, $op, strlen($op)))
{
error_log($this->xmlrpcstr['http_error']);
return new XML_RPC_Response(0, $this->xmlrpcerr['http_error'], $this->xmlrpcstr['http_error']);
@@ -1076,7 +1076,7 @@ public function closing_tag($the_parser, $name)
// we have an I4/INT
// 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'])
- ? (int) $this->xh[$the_parset]['ac']
+ ? (int) $this->xh[$the_parser]['ac']
: 'ERROR_NON_NUMERIC_FOUND';
}
$this->xh[$the_parser]['ac'] = '';

0 comments on commit 87a4b54

Please sign in to comment.