Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions system/libraries/Xmlrpc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ public function parseResponse($fp)
//-------------------------------------

$parser = xml_parser_create($this->xmlrpc_defencoding);
$pname = (string) $parser;
$pname = spl_object_id($parser);
$this->xh[$pname] = array(
'isf' => 0,
'ac' => '',
Expand Down Expand Up @@ -1279,7 +1279,7 @@ public function parseResponse($fp)
*/
public function open_tag($the_parser, $name)
{
$the_parser = (string) $the_parser;
$the_parser = spl_object_id($the_parser);

// If invalid nesting, then return
if ($this->xh[$the_parser]['isf'] > 1) return;
Expand Down Expand Up @@ -1380,7 +1380,7 @@ public function open_tag($the_parser, $name)
*/
public function closing_tag($the_parser, $name)
{
$the_parser = (string) $the_parser;
$the_parser = spl_object_id($the_parser);

if ($this->xh[$the_parser]['isf'] > 1) return;

Expand Down Expand Up @@ -1514,7 +1514,7 @@ public function closing_tag($the_parser, $name)
*/
public function character_data($the_parser, $data)
{
$the_parser = (string) $the_parser;
$the_parser = spl_object_id($the_parser);

if ($this->xh[$the_parser]['isf'] > 1) return; // XML Fault found already

Expand Down