July 17, 2007
PHP 5 Goes Mainstream (Finally)
Three years after its release, PHP 5 is finally receiving the recognition it deserves.
In case you aren't up to date with PHP announcements, it was officially announced on Friday that development on PHP 4 would cease at the end of the year, effectively forcing people to upgrade to PHP 5 to remain up to date on enhancements and security fixes. Alongside this announcement, there is now a group of popular applications pledging support for PHP 5.2.x and beyond at gophp5.org.
It is about time!
Now that popular web applications will be adopting PHP 5.2, perhaps we will finally see masses flock to running PHP 5 and development efforts can be concentrated on newer versions.
And it can't happen soon enough.
After being an early adopter of higher version language features like SPL, PDO, and SimpleXML, whenever I look at popular PHP projects not fully utilizing the language, I get sick to the stomach. Seriously, once you have used SimpleXML, you look upon DOM with disdain. Once you harness the power of SPL, specifically ArrayObject, ArrayIterator, and DirectoryIterator, you will look upon previous versions of PHP 4 as archaic. You will wonder how you managed to be productive all those years.
And, as icing on the cake to celebrate PHP 5.2's soon-to-be mass adoption, we have the announcement that namespaces have been added to PHP 6. This scripting language is definitely morphing into a different beast. Now, all we need are a few of those convenient operators and language-level functions that the Perl and Ruby fans love so. Two I would love to see are the ".." operator for array slices and the ability to declare functions in a method similar to create_function(), but not requiring function contents to be inside a quoted string. Perl's grep would also be nice. But, hey, I'll settle for an easily readable language syntax any day of the week.
You can ping this entry by using http://blog.case.edu/gps10/mt-tb.cgi/14461 .
A response to Matt is here: http://funkatron.com/index.php/site/comments/what-matt-mullenweg-doesnt-know-about-php5-and-how-it-hurts-him-and-his-use/
For grep, try array_filter().
"Three years after its release, PHP 5 is finally receiving the recognition it deserves."
"effectively forcing people to upgrade to PHP 5"