<?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>Mon, 20 May 2013 14:52:47 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[OpenIdeasCompany.com: Redeclaring native PHP functions]]></title>
      <guid>http://www.phpdeveloper.org/news/5416</guid>
      <link>http://www.phpdeveloper.org/news/5416</link>
      <description><![CDATA[<p>
If you've ever really found a time when you needed to overwrite one of PHP's bult-in functions with your own custom one (maybe a custom handler or the like), you might want to check out <a href="http://openideascompany.com/bogomil/?p=42">this post</a> on OpenIdeasCompany.com.
</p>
<p>
The author needed to redeclare session_start in a few files to change the place the default sessions are located at (spanned across three machines). He didn't want to rewrite the application to make this change, so he used the runkit extension out of pecl (and the php-devel package) to create a solution redefining functions to match his needs.
</p>
<p>
Of course, there are some <a href="http://www.php.net/manual/en/function.session-save-path.php">easier</a> <a href="http://www.php.net/manual/en/function.session-set-save-handler.php">ways</a> to accomplish what he needed, but it's still an interesting method if there's really just no other way.
</p>]]></description>
      <pubDate>Mon, 22 May 2006 06:43:24 -0500</pubDate>
    </item>
  </channel>
</rss>
