Iām admittedly a bit lateĀ (a month)Ā to the news , butĀ PHP 5.3 alpha 1 has been released. Iām lucky to have stumbled on the news, because I havenāt followed PHPās release schedule at all lately, but the 5.3 release is particularly exciting ā PHP finally has support for proper lambda closures ā now itās a realĀ language ![]()
New features below, and release notes here:
- NamespacesĀ (documentation maybe out dated)
- Late static bindingĀ andĀ __callStatic
- Lambda functions and closuresĀ Ā [Ed. ā finally!]
- Addition of theĀ intl,Ā pharĀ (phar is scheduled for some more work a head of alpha2),Ā fileinfoĀ andĀ sqlite3Ā extensions
- Optional cyclic garbage collection
- Optional support for theĀ MySQLndĀ replacement driver for libmysql
- Windows older than Windows 2000 (Windows 98, NT4, etc.) are not supported anymore (details)
- New syntax features likeĀ NOWDOC, limited GOTO, ternary short cut ā?:ā
Also exciting: significantly better internationalization support, and a PHP archive format ā the .phar. The combo of namespaces and the addition of .phar support should allow for much better organization of libraries and applications. Iād love to upgrade WordPress by uploading a single .phar file instead of the hoopla you have to go through now.