News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



Eirik Hoem's Blog:
Array problems with SOAP and PHP - Updated
0 comments :: posted Thursday March 13, 2008 @ 10:22:19
voice your opinion now!

Eirik Hoem has posted an update on a previous problem he was having when working with SOAP in PHP and its handling of arrays.

The scenario was that when an array with only one object was returned over SOAP the array was discarded and pointed straight to the single object.

Come to find out, this behavior wasn't a bug, it was a feature - the fix is to add another parameter to the initialization of the SoapClient to add the SOAP_SINGLE_ELEMENT_ARRAYS feature.

tagged with: soap gotcha array problem soapsingleelementarrays feature bug



zendframework mysql book PHP5 database pecl PEAR ajax application framework package conference cakephp job release security releases code developer zend

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework