git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd5dbb4
)
Fix compatibility with php 7.2
author
gggeek
<giunta.gaetano@gmail.com>
Sun, 3 Sep 2017 17:52:10 +0000
(18:52 +0100)
committer
gggeek
<giunta.gaetano@gmail.com>
Sun, 3 Sep 2017 17:52:10 +0000
(18:52 +0100)
.travis.yml
patch
|
blob
|
history
src/Request.php
patch
|
blob
|
history
diff --git
a/.travis.yml
b/.travis.yml
index
38878b6
..
1ff5d12
100644
(file)
--- a/
.travis.yml
+++ b/
.travis.yml
@@
-7,6
+7,7
@@
php:
- 5.6
- 7.0
- 7.1
+ - 7.2
# hhvm is not available any more on default travis images
#- hhvm
diff --git
a/src/Request.php
b/src/Request.php
index
4714489
..
54dc6c0
100644
(file)
--- a/
src/Request.php
+++ b/
src/Request.php
@@
-288,7
+288,7
@@
class Request
xml_set_default_handler($parser, 'xmlrpc_dh');
// first error check: xml not well formed
- if (!xml_parse($parser, $data,
count($data)
)) {
+ if (!xml_parse($parser, $data,
1
)) {
// thanks to Peter Kocks <peter.kocks@baygate.com>
if ((xml_get_current_line_number($parser)) == 1) {
$errStr = 'XML error at line 1, check URL';