<?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, 19 Jun 2013 09:22:52 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Christopher Jones' Blog: Statement caching bug fix to improve performance of OCI8 extension]]></title>
      <guid>http://www.phpdeveloper.org/news/8025</guid>
      <link>http://www.phpdeveloper.org/news/8025</link>
      <description><![CDATA[<p>
In a <a href="http://blogs.oracle.com/opal/2007/06/11#a135">new post</a> to his Oracle blog today, <i>Christopher Jones</i> talks about a bug that's been found in the OCI8 extension <a href="http://news.php.net/php.cvs/44754">involving statement caching</a> and a fix he's presenting.
</p>
<blockquote>
As part of some testing we were doing, we found that PHP's OCI8 extension had a bug in the way it used Oracle's statement caching. The fix is already in CVS and will be generally available in PHP 5.2.4. After a short period for you to send me comments, Antony Dovgal will also build a new PECL snapshot of OCI8.
</blockquote>
<p>
He explains the issue, a problem attributed to the switching of a "hard pause" and "soft pause" when the script caching connects to the Oracle database server. This caching feature is enabled by adding an "oci8.statement_cache_size" value in your php.ini file (and has a default size of 20). 
</p>
<p>
If you've been having issues with this request caching and want to get the fix right away, grab it from <a href="http://cvs.php.net/viewvc.cgi/">the CVS</a>. Otherwise, keep an eye out for PHP 5.2.4 coming soon to correct the issue.
</p>]]></description>
      <pubDate>Tue, 12 Jun 2007 08:49:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Christopher Jones' Blog: When a few seconds are important: improving PHP Oracle connection speed]]></title>
      <guid>http://www.phpdeveloper.org/news/7516</guid>
      <link>http://www.phpdeveloper.org/news/7516</link>
      <description><![CDATA[<p>
In <a href="http://blogs.oracle.com/opal/2007/03/28#a111">a new post</a> to his Oracle blog today, <i>Christopher Jones</i> has a handy tip to help you speed up your Oracle-using PHP scripts by as much as few seconds. The tip originally comes from <i>Krishna Mohan</i>.
</p>
<blockquote>
What Krishna pointed out was that specifying the client character set name as the optional fourth parameter to oci_pconnect() has a postive effect on performance.  If you let the value default then PHP has to invoke code to determine what the client character set should be. This lookup may involve a potentially expensive environment check.
</blockquote>
<p>
So, a speed increase might be as easy as <a href="http://blogs.oracle.com/opal/2007/03/28#a111">adding another parameter</a> to your scripts. <i>Christopher</i> includes an example to show where the value goes (in an oci_pconnect call).
</p>
<blockquote>
Testing with the database and PHP both on my little old machine I was getting figures like 0.6 vs 2.7 seconds for 50,000 pconnect calls in the one script.  I saw some other results that showed only a three-times difference.
</blockquote>]]></description>
      <pubDate>Wed, 28 Mar 2007 08:33:00 -0500</pubDate>
    </item>
  </channel>
</rss>
