Just a quick hint to people with an interest in the development of PHP, but no time for following php-internals. Since March, there has been a wiki at wiki.php.net. The most interesting section is probably wiki.php.net/rfc, which – as the name implies – contains RFC‘s for improvements of the language. I’ve rambled on about closures and lambdas before, but as you can see, there is now an accepted patch. Whether it’ll make it into 5.3 is unlikely at this point, but it looks like it’ll at least be coming with 5.4 and/or 6.0.

While we’re at it, Steph Fox have dutifully been writing up summaries of php-internals discussions on a weekly basis since the beginning of time. If you just want to get the headlines, it’s an informative read.

Have a nice summer.

Troels has been crafting web applications, as a freelancer and while employed by companies of various sizes, since around the time of the IT-bubble burst. Nowadays, he's working on backend systems for a Danish ISP. In his spare time, he develops and maintains Konstrukt, a web application framework for PHP, and is the organizer of a monthly PHP-meetup in Copenhagen.

  • MathieuK

    Closures are actually in PHP 5.3 at this time:

    Mekkie:closure mathieu$ php t.php

  • Lukas

    Closures is now accepted into 5.3, but its not considered a key feature, so it might still be dropped in case we run into bigger issues,

  • Jani Taskinen

    Closures/lambda patch was committed already to PHP_5_3 branch. So it will be in PHP5.3.0: date:

    2008/07/14 09:48:59; author: dmitry; state: Exp; lines: +329 -0
    Added support for lambda functions and closures

  • kyberfabrikken

    Thanks for the update on that; Great to see them coming in 5.3, since it could take a while before we get to 5.4.

  • RenĂ© Leonhardt

    Closures are already in PHP 5.3 and I will never let them go again ;)
    Just try the example code:

Special Offer
Free course!

Git into it! Bonus course Introduction to Git is yours when you take up a free 14 day SitePoint Premium trial.