git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
f9fab3f
)
Merge pull request #62 from morloi/php51
author
Gaetano Giunta
<giunta.gaetano@gmail.com>
Tue, 3 Apr 2018 14:02:53 +0000
(15:02 +0100)
committer
GitHub
<noreply@github.com>
Tue, 3 Apr 2018 14:02:53 +0000
(15:02 +0100)
Update for php 7.2 compatibility issue
lib/xmlrpc.inc
patch
|
blob
|
history
diff --git
a/lib/xmlrpc.inc
b/lib/xmlrpc.inc
index
7123184
..
80bdf72
100644
(file)
--- a/
lib/xmlrpc.inc
+++ b/
lib/xmlrpc.inc
@@
-2684,7
+2684,7
@@
xmlrpc_encode_entitites($this->errstr, $GLOBALS['xmlrpc_internalencoding'], $cha
xml_set_default_handler($parser, 'xmlrpc_dh');
\r
\r
// first error check: xml not well formed
\r
- if(!xml_parse($parser, $data,
count($data)
))
\r
+ if(!xml_parse($parser, $data,
1
))
\r
{
\r
// thanks to Peter Kocks <peter.kocks@baygate.com>
\r
if((xml_get_current_line_number($parser)) == 1)
\r
@@
-3919,4
+3919,4
@@
xmlrpc_encode_entitites($this->errstr, $GLOBALS['xmlrpc_internalencoding'], $cha
}
\r
}
\r
\r
-?>
\ No newline at end of file
+?>
\r