<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sun, 06 Jul 2008 16:48:03 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Eirik Hoem's Blog: Array problems with SOAP and PHP - Updated]]></title>
      <guid>http://www.phpdeveloper.org/news/9790</guid>
      <link>http://www.phpdeveloper.org/news/9790</link>
      <description><![CDATA[<p>
<i>Eirik Hoem</i> has <a href="http://eirikhoem.wordpress.com/2008/03/13/array-problems-with-soap-and-php-updated/">posted an update</a> on a <a href="http://eirikhoem.wordpress.com/2007/05/23/array-problems-with-x-fire-soap-and-php">previous problem</a> he was having when working with SOAP in PHP and its handling of arrays.
</p>
<blockquote>
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.
</blockquote>
<p>
Come to find out, this behavior wasn't a bug, it was <a href="http://bugs.php.net/bug.php?id=36226">a feature</a> - the fix is to add another parameter to the initialization of the SoapClient to add the SOAP_SINGLE_ELEMENT_ARRAYS feature.
</p>]]></description>
      <pubDate>Thu, 13 Mar 2008 10:22:19 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPEverywhere: Octopussy numbers in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9543</guid>
      <link>http://www.phpdeveloper.org/news/9543</link>
      <description><![CDATA[<p>
<i>John Lim</i> has <a href="http://phplens.com/phpeverywhere/?q=node/view/249">posted about</a> an interesting bug he's come across when working with the output of two strings that should look the same:
</p>
<blockquote>
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.
</blockquote>
<p>
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 <a href="http://phplens.com/phpeverywhere/?q=node/view/249">his post</a> for the code and try it out for yourself.
</p>]]></description>
      <pubDate>Fri, 01 Feb 2008 09:21:00 -0600</pubDate>
    </item>
  </channel>
</rss>
