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:
f92bdf7
)
Fix: encoding of php resources when in php compat mode
author
gggeek
<giunta.gaetano@gmail.com>
Tue, 16 Jan 2018 17:08:11 +0000
(17:08 +0000)
committer
gggeek
<giunta.gaetano@gmail.com>
Tue, 16 Jan 2018 17:08:11 +0000
(17:08 +0000)
src/Encoder.php
patch
|
blob
|
history
diff --git
a/src/Encoder.php
b/src/Encoder.php
index
735c3ed
..
495584d
100644
(file)
--- a/
src/Encoder.php
+++ b/
src/Encoder.php
@@
-156,7
+156,7
@@
class Encoder
// </G_Giunta_2001-02-29>
case 'array':
// PHP arrays can be encoded to either xmlrpc structs or arrays,
// </G_Giunta_2001-02-29>
case 'array':
// PHP arrays can be encoded to either xmlrpc structs or arrays,
- // depending on wheter they are hashes or plain 0..n integer indexed
+ // depending on whet
h
er they are hashes or plain 0..n integer indexed
// A shorter one-liner would be
// $tmp = array_diff(array_keys($phpVal), range(0, count($phpVal)-1));
// but execution time skyrockets!
// A shorter one-liner would be
// $tmp = array_diff(array_keys($phpVal), range(0, count($phpVal)-1));
// but execution time skyrockets!
@@
-209,6
+209,7
@@
class Encoder
} else {
$xmlrpcVal = new Value();
}
} else {
$xmlrpcVal = new Value();
}
+ break;
// catch "user function", "unknown type"
default:
// giancarlo pinerolo <ping@alt.it>
// catch "user function", "unknown type"
default:
// giancarlo pinerolo <ping@alt.it>