Zeev Suraski wrote: > The vast majority of the PHP community is a silent one; These people > don't participate here on internals; They don't attend conferences; They > use it - the vast majority of them in a professional manner - and they > picked it because they like it the way it is, not because of what it needs > to become. For every person that subscribes to internals, there's a > thousand (yes, a THOUSAND) people who don't (it's several thousands vs.~5 > million). In fact, they're not completely silent. They speak in volumes > - PHP 5.4 is used in less than 1% of the sites using PHP today, and even > the relatively revolutionary 5.3 is still a lot less popular than 5.2. > The new shiny features are not all that interesting for most people.
I'd like to speak to this as someone involved in WordPress development. As a whole, despite being a huge project with large amounts of developers and users, WordPress is pretty under-represented on php-internals. One of the big reasons for that is that we're stuck with a lot of backwards compatibility, both internal and external. We try hard to ensure that our API to our plugins doesn't break, which unfortunately has left us with being the go-to project for pointing out bad code. As much as some may want us to, we're not going to go and rewrite WP in a day to use new features, so internals discussions aren't that important at the moment. We're also stuck with a huge number of hosts still on PHP 5.2: http://wordpress.org/about/stats/ I'd say it's somewhat of a chicken-and-egg problem, in that WP can't develop for what's not there, and hosts won't bother upgrading if they don't have to. We only stopped supporting PHP 4.x when the usage dropped below 10%, and I'd see the same occurring for 5.2. To me, I think the best possible thing to do would be to encourage hosts to upgrade much faster. Rolling APC/Accelerator+ into core would be a huge part of that from what I see. Backwards compatibility for PHP itself seems to be pretty good, but it could be better. Hosts are still reluctant to push existing users forward: Bluehost, Dreamhost, and GoDaddy all offer 5.3, but none upgrade users automatically; WPEngine and Page.ly, two large WP-centric hosts, are both on 5.3, since they know WP won't break on upgrade. We are making some efforts towards a push for 5.3+. In future releases, we're planning on introducing some features that would only be enabled for 5.3+ but none of those have been introduced yet to my knowledge. Hopefully we can push the hosts enough to get this, but it wouldn't change much of WordPress internally. Anonymous functions, e.g., are fairly incompatible with the way we implement the Mediator pattern with our hooking system. Namespaces might be implemented for new code, but there's basically zero chance for the existing code base. -- Ryan McCue <http://ryanmccue.info/> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php