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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
50 + 21 = ?
Subscribe to this entry?

 
 [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: Mon Apr 29 19:01:30 2024 UTC