<?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>Tue, 06 Jan 2009 02:27:09 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Jeremy Johnstone's Blog: Enums in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/11147</guid>
      <link>http://www.phpdeveloper.org/news/11147</link>
      <description><![CDATA[<p>
In <a href="http://www.jeremyjohnstone.com/blog/archives/2008/10/05/enums-in-php/">this new post</a> <i>Jeremy Johnstone</i> looks at creating a class to add that's missing from the basic datatype set of the language - enums.
</p>
<blockquote>
I stumbled across a blog post on <a href="http://it.toolbox.com/blogs/macsploitation/enums-in-php-a-native-implementation-25228">how to implement Enums in PHP via userland code</a> written by Jonathan Hohle. I liked the concept he had, but the implementation was a bit unappealing because it used eval() among other more minor issues. You shouldn't need to generate Enums at runtime, so I took that as a challenge to find a way to do it at compile time, thus making the code much more efficient.
</blockquote>
<p>
His enums would support type hinting and would, ideally, be iterable. He gives the code he's worked up - a base class, another than extends it to make a basic enum structure and some handy changes to support comparisons. A few more changes (and a few other extended classes later) he has some pretty well functioning enums that can even bee iterated through.
</p>]]></description>
      <pubDate>Mon, 06 Oct 2008 07:56:08 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Maggie Nelson's Blog: PDO_OCI does not support CLOBs]]></title>
      <guid>http://www.phpdeveloper.org/news/8091</guid>
      <link>http://www.phpdeveloper.org/news/8091</link>
      <description><![CDATA[<p>
After struggling with it for a good while, <i>Maggie Nelson</i> finally figured out the answer to her problems with Oracle, PDO and CLOBs - <a href="http://www.objectivelyoriented.com/2007/06/pdo_oci_does_not_support_clobs.html">they're just not supported</a>.
</p>
<blockquote>
<a href="http://netevil.org/uuid/4365876a-cee9-3009-7726-365876a51802">LOB support was added to PDO_OCI</a> in PHP 5.1. This is really cool, however, it appears that the LOB support really means BLOB support. After much investigation and self-doubt (e.g. "what if we're using streams incorrectly?"), we found out that PDO_OCI does not currently support CLOBs (BLOBs only!).
</blockquote>
<p>
The bug's <a href="http://pecl.php.net/bugs/bug.php?id=7943">already been documented</a> and remains open, but <i>Maggie</i> encourages all of the Oracle developers out there with the fact that <a href="http://blogs.oracle.com/opal/">Chris Jones</a> (of Oracle) knows about the issue and plans to correct it in the next release of the extension.
</p>]]></description>
      <pubDate>Wed, 20 Jun 2007 14:07:03 -0500</pubDate>
    </item>
  </channel>
</rss>
