--TEST-- Bug #74975 Different serialization for classes --SKIPIF-- --FILE-- xmlrpc_type = 'base64'; $foo->scalar = 'foobar'; $bar = new Bar(); $bar->xmlrpc_type = 'base64'; $bar->scalar = 'foobar'; echo xmlrpc_encode([ 'foo' => $foo, 'bar' => $bar ]); ?> --EXPECTF-- foo Zm9vYmFy bar Zm9vYmFy