|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #24047 xmlrpc_decode() does not decode NULL values in SOAP 1.1
Submitted: 2003-06-05 12:15 UTC Modified: 2014-12-30 10:41 UTC
From: novicky at aarongroup dot cz Assigned:
Status: No Feedback Package: *General Issues
PHP Version: * OS: Any
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-06-05 12:15 UTC] novicky at aarongroup dot cz
The function xmlrpc_decode() does not decode properly NULL values in SOAP 1.1 at the first level.

The following example 

var_dump(xmlrpc_decode(xmlrpc_encode_request('method', array(array(NULL)), array('version'=>'soap 1.1'))));

will produce

array(1) {
  array(1) {

which is correct, but when NULL value is used at the first level of array like in the following example, the answer is incorrect

var_dump(xmlrpc_decode(xmlrpc_encode_request('method', array(NULL), array('version'=>'soap 1.1'))));

will produce

array(1) {
  string(0) ""


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-04-16 18:30 UTC]
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: *General Issues -Operating System: any +Operating System: Any -PHP Version: 4.3.2 +PHP Version: *
 [2014-04-16 18:30 UTC]
Anyone know if this has changed in the last decade?
 [2014-12-30 10:41 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 17 10:01:28 2024 UTC