<?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, 08 Jul 2008 23:45:21 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Christopher Jones' Blog: Temporary LOBS in PHP's OCI8 Extension. Instant Client.]]></title>
      <guid>http://www.phpdeveloper.org/news/9460</guid>
      <link>http://www.phpdeveloper.org/news/9460</link>
      <description><![CDATA[<p>
<i>Christopher Jones</i> talks today on <a href="http://blogs.oracle.com/opal/2008/01/17#a264">his blog</a> about a bug he's just corrected and integrated into the release of the Oracle Instant Client that lets PHP correctly take advantage of the temporary LOBS functionality.
</p>
<blockquote>
When PHP is done with the temporary LOB, it needs to tell Oracle to destroy it. If this isn't done, then the temporary LOB will hang around using DB space until the connection is closed. I just merged a fix worked on by Krishna Mohan and myself for <a href="http://bugs.php.net/bug.php?id=43497">bug 43497</a>.
</blockquote>
<p>
Example code is included showing two instances of its use - a normal use that frees the memory correctly and the other showing how to create the temporary lob to hold the data as needed.
</p>]]></description>
      <pubDate>Mon, 21 Jan 2008 12:05:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Tim Koschuetzki's Blog: Composing Methods: Remove Assignments to Parameters]]></title>
      <guid>http://www.phpdeveloper.org/news/8193</guid>
      <link>http://www.phpdeveloper.org/news/8193</link>
      <description><![CDATA[<p>
In another part of his "Composing Methods" series, <i>Tim Koschuetzki</i> <a href="http://php-coding-practices.com/refactoring/composing-methods/composing-methods-remove-assignments-to-parameters/">posts about</a> removing assignments to parameters today - working with a temporary variable inside a method rather than the actual passed in value.
</p>
<blockquote>
When your code assigns to a parameter in a function/method, use a temporary variable instead. [...] It will make your code much more readable and prevents by-reference confusion and therefore big problems in the future.
</blockquote>
<p>
His example code uses the illustration of calling a price() method in a class to modify the inputVal value based on other inputted information. His suggestion is to not work with the actual inputVal value passed in (so as to avoid issues if it happens to be passed my reference later), but to work with a temporary variable - $result - inside the method.
</p>]]></description>
      <pubDate>Fri, 06 Jul 2007 10:21:00 -0500</pubDate>
    </item>
  </channel>
</rss>
