php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: novicky at aarongroup dot cz
New email:
PHP Version: OS:

 

 [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) {
  [0]=>
  array(1) {
    [0]=>
    NULL
  }
}

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) {
  ["xsi:null"]=>
  string(0) ""
}

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-04-16 18:30 UTC] levim@php.net
-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] levim@php.net
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: Sat Jul 13 04:01:31 2024 UTC