News Feed
Jobs Feed
Sections




News Archive
Eirik Hoem's Blog:
Array problems with SOAP and PHP - Updated
March 13, 2008 @ 10:22:19

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.

0 comments voice your opinion now!
soap gotcha array problem soapsingleelementarrays feature bug


blog comments powered by Disqus

Similar Posts

Nick Halstead's Blog: Do faster typists make better coders?

CentreSource Blog: PHP Session Lifetime - an Adventure

McGlockenshire.com: Waiting for PHP 5.4: Death to prehistoric cruft

PEAR Blog: First PEAR bug triage over!

NETTUTS.com: 5 Amazing New WordPress 2.7 Features


Community Events











Don't see your event here?
Let us know!


community database podcast zendframework2 rest usergroup conference framework interview symfony2 language series opinion functional phpunit development introduction unittest release testing

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