Programming
Article

Keeping Current With PHP

By Troels Knak-Nielsen

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.

Meet the author
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
    109-97-116-104-105-101-117-

  • 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:
    http://wiki.php.net/rfc/closures

Recommended

Learn Coding Online
Learn Web Development

Start learning web development and design for free with SitePoint Premium!

Get the latest in Front-end, once a week, for free.