News Feed
Jobs Feed
Sections

Recent Jobs

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



Similar Posts

WS02 Oxygen Tank: PHP SOAP Extension

International PHP Magazine: Poll Question: What are the Features you want to see in PHPUnit Projects

Matthew Turland's Blog: Interesting Bug in the HTTP Streams Wrapper

Stubbles Blog: Two New PHP6 Wishlist Items

International PHP Magazine: Poll Question: Which is the Best Feature for PHPExcel Version 1.0.0?


Community Events











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


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

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