Bug #64589 [Nab]: SOAP arrays with non-sequentially indexed keys ignored
| From: | cweiske@php.net | Date: | Wed, 10 Apr 2013 20:09:25 +0000 |
| Subject: | Bug #64589 [Nab]: SOAP arrays with non-sequentially indexed keys ignored | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-178396@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64589&edit=1
ID: 64589
Updated by: cweiske@php.net
Reported by: cweiske@php.net
Summary: SOAP arrays with non-sequentially indexed keys
ignored
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:
I understand the reasoning that the data cannot be transferred without data loss.
But I'd like to get notified about that the data I want to send cannot be sent and will be
ignored - an E_WARNING for example. Currently, I also suffer a data loss - and it goes unnoticed.
Previous Comments:
------------------------------------------------------------------------
[2013-04-09 10:43:13] dmitry@php.net
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.
------------------------------------------------------------------------
[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