projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f0695f
)
PHP8
author
Alan
<alan@roojs.com>
Mon, 26 Feb 2024 03:03:13 +0000
(11:03 +0800)
committer
Alan
<alan@roojs.com>
Mon, 26 Feb 2024 03:03:13 +0000
(11:03 +0800)
XML/Parser.php
patch
|
blob
|
history
diff --git
a/XML/Parser.php
b/XML/Parser.php
index
38723ba
..
6648371
100644
(file)
--- a/
XML/Parser.php
+++ b/
XML/Parser.php
@@
-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)