Bug #64589 [Asn->Nab]: SOAP arrays with non-sequentially indexed keys ignored

From: Date: Tue, 09 Apr 2013 10:43:13 +0000
Subject: Bug #64589 [Asn->Nab]: SOAP arrays with non-sequentially indexed keys ignored
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-178367@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:         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)

« previous php.bugs (#178367) next »