From: admin at erazor-zone dot de Operating system: Linux 2.6 - gentoo PHP version: 5.1.2 PHP Bug Type: XMLRPC-EPI related Bug description: direct access to arrays from xmlrpc_decode does not work
Description: ------------ xmlrpc_decode produces something like: Array ( [50] => 0.29 ) addressing the addressing it like $variable[50] does not work :-( (empty result), same with '50' as key. Reproduce code: --------------- $response='<?xml version="1.0"?> <methodResponse> <params> <param> <value> <struct> <member> <name>50</name> <value><string>0.29</string></value> </member> </struct> </value> </param> </params> </methodResponse>'; $retval_bugged=xmlrpc_decode($response); print_r($retval_bugged); /* returns: Array ( [50] => 0.29 ) */ Expected result: ---------------- echo $retval_bugged[50]; //should write 0.29 echo $retval_bugged['50']; //should write 0.29 Actual result: -------------- echo $retval_bugged[50]; echo $retval_bugged['50']; //no result foreach($retval_bugged as $key=>$value) { $retval[$key]=$value; } echo $retval[50]; //works -- Edit bug report at http://bugs.php.net/?id=37057&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37057&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37057&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37057&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37057&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37057&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37057&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37057&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37057&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37057&r=support Expected behavior: http://bugs.php.net/fix.php?id=37057&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37057&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37057&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37057&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37057&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37057&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37057&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37057&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37057&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37057&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37057&r=mysqlcfg