Fix: encoding of php resources when in php compat mode
authorgggeek <giunta.gaetano@gmail.com>
Tue, 16 Jan 2018 17:08:11 +0000 (17:08 +0000)
committergggeek <giunta.gaetano@gmail.com>
Tue, 16 Jan 2018 17:08:11 +0000 (17:08 +0000)
src/Encoder.php

index 735c3ed..495584d 100644 (file)
@@ -156,7 +156,7 @@ class Encoder
             // </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 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 <ping@alt.it>