X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2FEncoder.php;h=495584db3614cece94ca191de2b444ae6d8eec8b;hb=7df27d0ac7a41e6ca108ff85d6bfd379251dfc78;hp=735c3edc12352e02f02bbb2efaf61baceae87668;hpb=f92bdf75c35871fa4f85332aca9b0d1258ec160f;p=plcapi.git 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