Req #24047 [Opn->Fbk]: xmlrpc_decode() does not decode NULL values in SOAP 1.1
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)