News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

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


PHPEverywhere:
Octopussy numbers in PHP
0 comments :: posted Friday February 01, 2008 @ 09:21:00
voice your opinion now!

John Lim has posted about an interesting bug he's come across when working with the output of two strings that should look the same:

Someone reported a bug in ADOdb, the open source db library i maintain. I went crazy for half an hour until i realised the problem.

According to him, "if you expect the above code to produce the same values, you are sadly mistaken". His example gives an interesting result for the first echo statement - not echoing the 9 in the first character like it seems would make sense. Check out his post for the code and try it out for yourself.

tagged with: number echo adodb database gotcha


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

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