<?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, 18 Jun 2013 20:42:59 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[SitePoint PHP Blog: Lexical scope to appear in PHP?]]></title>
      <guid>http://www.phpdeveloper.org/news/9309</guid>
      <link>http://www.phpdeveloper.org/news/9309</link>
      <description><![CDATA[<>
In <a href="http://www.sitepoint.com/blogs/2007/12/23/lexical-scope-to-appear-in-php/">this new post</a> to the SitePoint PHP blog, <i>Troels Knak-Nielsen</i> talks about some of the advancements (and diagreements) that have happened around adding lexical scope to the create_function functionality.
</p>
<blockquote>
<p>
The main argument against approving the patch, seems to be, that one would expect static scoping rules to apply to the anonymous function. After all, this is the case in similar languages, which support anonymous functions. One could only assume, that changing PHP to support this, would be a major undertaking.
</p>
<p>
One would be wrong, it seems.
</p>
</blockquote>
<p>
<a href="http://news.php.net/php.internals/34216">A patch</a> has been made to add the functionality (from <i>Christian Seller</i>) adding a new keyword, lexical, to make it all work.
</p>]]></description>
      <pubDate>Tue, 25 Dec 2007 09:46:00 -0600</pubDate>
    </item>
  </channel>
</rss>
