ID: 43338 User updated by: daniel dot seif at castex dot de -Reported By: daniel dot seif at castex dot cc +Reported By: daniel dot seif at castex dot de -Status: No Feedback +Status: Open Bug Type: SOAP related Operating System: Red Hat 5 EL PHP Version: 5.2.5 New Comment:
adding a comment to reopen the issue... --- It's still not working in 5.2.10-dev as of today. I tested it with the windows binary build from yesterday. I provided you a test-package, you can download it here: http://castex.de/stuff/php-bug43338.zip Previous Comments: ------------------------------------------------------------------------ [2009-04-25 10:34:18] daniel dot seif at castex dot de It's still not working in 5.2.10-dev as of today. I tested it with the windows binary build from yesterday. I provided you a test-package, you can download it here: http://castex.de/stuff/php-bug43338.zip ------------------------------------------------------------------------ [2009-02-21 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2009-02-13 22:16:00] [email protected] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2007-11-19 17:50:57] daniel dot seif at castex dot de Description: ------------ If a SoapServer-Object is instantiated with the option SOAP_SINGLE_ELEMENT_ARRAYS (to automatically get an array if defined in the wsdl) together with SOAP_USE_XSI_ARRAY_TYPE (to allow array types instead of wsdl types), an request sent with an SOAPEnc:Array will be transformed to an array with a "deepness" of 2. Reproduce code: --------------- class SoapHandler { function getSomething($arguments) { print_r($arguments); } } /** * SoapServer */ $server = new SoapServer($wsdl, array( 'uri' => $uri, 'features' => SOAP_USE_XSI_ARRAY_TYPE + SOAP_SINGLE_ELEMENT_ARRAYS)); $server->setClass('SoapHandler'); $server->handle(); /** * request **/ <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <ns4848:getSomething> <arguments xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[2]"> <item xsi:type="xsd:string">String 1</item> <item xsi:type="xsd:string">String 2</item> </arguments> </ns4848:getRouteMiles> </SOAP-ENV:Body> </SOAP-ENV:Envelope> Expected result: ---------------- Array ( [0] => String 1 [1] => String 2 ) Actual result: -------------- Array ( [0] => Array ( [0] => String 1 [1] => String 2 ) ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43338&edit=1
