PHP8
authorAlan <alan@roojs.com>
Mon, 26 Feb 2024 03:03:13 +0000 (11:03 +0800)
committerAlan <alan@roojs.com>
Mon, 26 Feb 2024 03:03:13 +0000 (11:03 +0800)
XML/Parser.php

index 38723ba..6648371 100644 (file)
@@ -353,7 +353,7 @@ class XML_Parser extends PEAR
         } else {
             $xp = xml_parser_create($this->srcenc);
         }
-        if (is_resource($xp)) {
+        if (is_object($xp)) {
             if ($this->tgtenc !== null) {
                 if (!xml_parser_set_option($xp, XML_OPTION_TARGET_ENCODING, 
                     $this->tgtenc)