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

 ID:                 64589
 Updated by:         cwei...@php.net
 Reported by:        cwei...@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] dmi...@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] cwei...@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

Reply via email to