|  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 (profile)
Status: Closed Package: XMLRPC-EPI related
PHP Version: 5.1.3RC3 OS: Linux 2.6 - gentoo
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: admin at erazor-zone dot de
New email:
PHP Version: OS:


 [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-2021 The PHP Group
All rights reserved.
Last updated: Mon May 17 17:01:25 2021 UTC