<?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>Wed, 22 May 2013 02:49:50 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[rooJSolutions Blog: Watch-out PHP 5.3.7+ is about.. and the is_a() / __autoload() mess.]]></title>
      <guid>http://www.phpdeveloper.org/news/16810</guid>
      <link>http://www.phpdeveloper.org/news/16810</link>
      <description><![CDATA[<p>
New from the rooJSolutions blog there's a post pointing out an issue that PHP 5.3.7 has broken the <a href="http://php.net/is_a">is_a</a> functionality in a lot of cases. <a href="http://roojs.com/index.php/View/242/.html">The post</a> talks some about what's broken and how you can work around it if you're effected.
</p>
<blockquote>
The key issue was that 5.3.7 accidentally broke is_a() for a reasonably large number of users. Unfortunately the fixup release 5.3.8 did not address this 'mistake', and after a rather fruitless exchange I gave up trying to persuade the group (most people on mailing list), that reverting the change was rather critical (at least pierre supported reverting it in the 5.3.* series).
</blockquote>
<p>
This new issue was causing some strange errors to pop up in his code because of a parameter type change in the <a href="http://php.net/is_a">is_a</a> call, updating the first parameter to be an object instead of a class name. The is_a() call sends its requests to __autoload in some cases and the string->object mismatch of those parameters causes errors to be thrown. His workaround is, in your checking, just be sure to call an <a href="http://php.net/is_object">is_object</a> first before passing things off to be is_a() checked and autoloaded.
</p>]]></description>
      <pubDate>Fri, 02 Sep 2011 10:43:24 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: On models in a Zend Framework application]]></title>
      <guid>http://www.phpdeveloper.org/news/11568</guid>
      <link>http://www.phpdeveloper.org/news/11568</link>
      <description><![CDATA[<p>
In <a href="http://akrabat.com/2008/12/13/on-models-in-a-zend-framework-application/">this new post</a> to his blog <i>Rob Allen</i> looks at models in a Zend Framework application, specifically what thy're for and what they can do.
</p>
<blockquote>
Let's talk about writing models that communicate with databases within a Zend Framework application. It's a popular topic at the moment as there's been a few threads recently on the ZF mailing lists about creating models.
</blockquote>
<p>
He looks at the two different types of relationships they have to offer - "is a" and "has a" - with some code examples illustrating each. For the "has a" relationship (since its a bit more complex) he creates a gateway class that acts as an interface to the user information allowing for method calls to things like fetchAllInLastNameOrder, setFromArray and fetchUserById.
</p>]]></description>
      <pubDate>Mon, 15 Dec 2008 07:58:19 -0600</pubDate>
    </item>
  </channel>
</rss>
