From 76f1f5ded9b50dff8b8f2ea138d142591b1d4c26 Mon Sep 17 00:00:00 2001 From: Nathan Date: Tue, 9 Jan 2024 14:43:55 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20compatibility=20for=20PHP=208=E2=98=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/libraries/Xmlrpc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/system/libraries/Xmlrpc.php b/system/libraries/Xmlrpc.php index 8587015e877..5ff80e58841 100644 --- a/system/libraries/Xmlrpc.php +++ b/system/libraries/Xmlrpc.php @@ -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' => '', @@ -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; @@ -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; @@ -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