Bug #64589 [Asn->Nab]: SOAP arrays with non-sequentially indexed keys ignored
Edit report at https://bugs.php.net/bug.php?id=64589&edit=1
ID: 64589
Updated by: dmitry@php.net
Reported by: cweiske@php.net
Summary: SOAP arrays with non-sequentially indexed keys
ignored
-Status: Assigned
+Status: Not a bug
Type: Bug
Package: SOAP related
Operating System: Linux
PHP Version: 5.5.0beta1
Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
This is the expected behavior.
The value you are passing in brokenStrings does not conform to WSDL specification (it can't be
transferred without data lose). You may use Apache Map extension to pass array with indexes.
Previous Comments:
------------------------------------------------------------------------
[2013-04-05 09:32:11] cweiske@php.net
Description:
------------
When passing a non-sequentially numerically indexed array to a SOAPClient method, it gets ignored as
"empty".
Test script:
---------------
http://p.cweiske.de/35
Expected result:
----------------
<brokenStrings>
<string>foo</string>
<string>foo2</string>
</brokenStrings>
Actual result:
--------------
<brokenStrings/>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64589&edit=1
Thread (4 messages)