From: gggeek Date: Tue, 16 Jan 2018 17:08:11 +0000 (+0000) Subject: Fix: encoding of php resources when in php compat mode X-Git-Tag: 4.3.1~7 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=7df27d0ac7a41e6ca108ff85d6bfd379251dfc78 Fix: encoding of php resources when in php compat mode --- diff --git a/src/Encoder.php b/src/Encoder.php index 735c3ed..495584d 100644 --- a/src/Encoder.php +++ b/src/Encoder.php @@ -156,7 +156,7 @@ class Encoder // 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 whether 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! @@ -209,6 +209,7 @@ class Encoder } else { $xmlrpcVal = new Value(); } + break; // catch "user function", "unknown type" default: // giancarlo pinerolo