|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37057 direct access to arrays from xmlrpc_decode does not work
Submitted: 2006-04-12 14:28 UTC Modified: 2006-04-12 15:14 UTC
From: admin at erazor-zone dot de Assigned: tony2001
Status: Closed Package: XMLRPC-EPI related
PHP Version: 5.1.3RC3 OS: Linux 2.6 - gentoo
Private report: No CVE-ID:
 [2006-04-12 14:28 UTC] admin at erazor-zone dot de
xmlrpc_decode produces something like:
    [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"?>

/* returns: 
    [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) {

echo $retval[50];


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-12 15:14 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 21:01:31 2015 UTC