1--TEST-- 2Bug #50282 (xmlrpc_encode_request() changes object into array in calling function) 3--SKIPIF-- 4<?php if (!extension_loaded("xmlrpc")) print "skip"; ?> 5--FILE-- 6<?php 7 8class One { var $x = 10; } 9 10$o = new One(); 11var_dump($o); 12var_dump(xmlrpc_encode_request('test', $o)); 13var_dump($o); 14 15?> 16--EXPECTF-- 17object(One)#%d (1) { 18 ["x"]=> 19 int(10) 20} 21string(279) "<?xml version="1.0" encoding="iso-8859-1"?> 22<methodCall> 23<methodName>test</methodName> 24<params> 25 <param> 26 <value> 27 <struct> 28 <member> 29 <name>x</name> 30 <value> 31 <int>10</int> 32 </value> 33 </member> 34 </struct> 35 </value> 36 </param> 37</params> 38</methodCall> 39" 40object(One)#%d (1) { 41 ["x"]=> 42 int(10) 43} 44