Req #24047 [Opn->Fbk]: xmlrpc_decode() does not decode NULL values in SOAP 1.1

From: Date: Wed, 16 Apr 2014 18:30:36 +0000
Subject: Req #24047 [Opn->Fbk]: xmlrpc_decode() does not decode NULL values in SOAP 1.1
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185294@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=24047&edit=1

 ID:                 24047
 Updated by:         levim@php.net
 Reported by:        novicky at aarongroup dot cz
 Summary:            xmlrpc_decode() does not decode NULL values in SOAP
                     1.1
-Status:             Open
+Status:             Feedback
 Type:               Feature/Change Request
-Package:            Feature/Change Request
+Package:            *General Issues
-Operating System:   any
+Operating System:   Any
-PHP Version:        4.3.2
+PHP Version:        *
 Block user comment: N
 Private report:     N

 New Comment:

Anyone know if this has changed in the last decade?


Previous Comments:
------------------------------------------------------------------------
[2003-06-05 12:15:05] 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) ""
}


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=24047&edit=1


Thread (3 messages)

« previous php.bugs (#185294) next »