PHP5 adoption

Ilia wonders why people are not using PHP5. A good question, which I even asked of the Joomla! developers a while ago. The answer from Joomla! was predictable and logical: Hosting providers have not adopted PHP5 enough to warrant the switch as of now. Joomla! 2.0 will probably be PHP5. Why should we switch?

Ilia wonders why people are not using PHP5. A good question, which I even asked of the Joomla! developers a while ago. The answer from Joomla! was predictable and logical: Hosting providers have not adopted PHP5 enough to warrant the switch as of now. Joomla! 2.0 will probably be PHP5, but not earlier. According to Nexen, only just over 12% of all PHP installations are PHP5. For a PHP version that has been available for over two years already, that is a very bad score. And I truely don't understand why. Some of the reasons I've heard are: * Hosting provider does not want to upgrade because it breaks compatibility with PHP3 applications client is using * PHP4 is stable, why change a winning team? * Upgrade contains risk That first reason is scary already, and I've really heard that one, though that was about a year ago. Someone still running on PHP3 really doesn't want to do anything good I guess. The second reason is the one I can accept, even though there are tons of reasons to go to PHP5. For hosting providers who don't do development, I can perfectly accept this reason. As long as PHP4 is supported and new versions of that come out, there is no need to make the move. The last reason is stupid. There is little risk in upgrading, especially with the good documentation all around the Internet on upgrading. For development companies however, there is no excuse anymore. Especially, as Ilia mentions, since PHP 5.2 is more performant as any previous PHP version. That, combined with all the new options in PHP5, such as SimpleXML, the new object model, and you name it, there is no reason to stick to PHP4. With PHP5, PHP made a truely big step from a scripting language towards a real programming language, and now it's time for developers to do the same. I am trying to contribute to this by trying to get my current employer to do all future development in PHP5. Since we do a lot of hosting of our clients ourselves, this should not be too much of a problem. Since the new Joomla! 1.5 is written with at least forwards compatibility in mind, hopefully we should not have too much trouble with this approach.
Add comment

Comments

gravatar Vinu Thomas: In most cases, developers have a huge inertia when their code has to be migrated to a new version. Too lazy to test all the old code over again on the new version I guess :)


December 14, 2006
gravatar left: Vinu: If only that were the only problem. I mean, I have a few sites running on php4, and for now I’m not migrating them. But also in the development of new applications, PHP5 adoption is still not up to speed, and that is a shame because it really is much better than previous versions.


December 20, 2006
gravatar damien seguy: Hi

New stats are up for december : PHP 5 is about 40% of new installation.

Here are the URL.
PHP stats evolution for December 2006
http://www.nexen.net/chiffres_cles/phpversion/php_stats_evolution_for_december_2006.php
PHP statistics for December 2006
http://www.nexen.net/chiffres_cles/phpversion/php_statistics_for_december_2006.php


January 4, 2007
gravatar Mike: Two years ago I decided to develop a website in PHP5… what a mistake! My opinion as a programmer is that PHP5 is better than PHP4.

However, the choice of decent value for money hosting companies supporting PHP5 is poor. When a hosting company turns out to be unreliable, moving to another host is a pain, as there aren’t many PHP5 hosts (note I need UK IP in this case).

My solution after two years? Yes I’m afraid I’m about to port all my code from PHP5 to PHP4, not by choice but by necessity as the hosting company I want give unique IP addresses for each website but at a great price – I already know a friend who has been highly successful with this.

On the up side I have managed to implement some code which mimics the autload feature from PHP5 in PHP4. I have also managed to get namespaces working.

And I’ve already tested a site which works on both PHP4 and PHP5 hosts, and will be easy to upgrade to a pure PHP5.

So some good news has come out of this. It means that I have namespaces and autoload working in PHP4.

PHP6… what a joke! Why bother, if PHP5 hasn’t been adopted for over 2 years then what hope has it got. The PHP authors are living in a fantasy dream world, but at least by 2015 we might be using PHP5 ;o)

And maybe PHP6 in 2025, by which time the internet will be completely different, so what’s the point!


January 7, 2007
gravatar China Wholesale: Wow Amazing...Nice post I love it!
April 17, 2012

Php5_zce_logo

Upcoming events

I will be speaking 05-06-2012: Forum PHP
I will be attending 06-06-2012: Symfony Live Paris 2012
I will be attending 07-06-2012: Symfony Live Paris 2012
I will be attending 08-06-2012: Symfony Live Paris 2012
I will be attending 09-06-2012: Symfony Live Paris 2012
I will be attending 23-06-2012: PHP TestFest NL

Tags

1337 2008 2010 2011 4developers access modifiers accessibility AdaLovelaceDay09 advent agavi agile alfred amsterdam apache api apple article articles atk atkMetaNode audioscrobbler autoloading automation azure backwards compatibility barcelona barcodes bash bbc bbq beatstad belgium best practices bittorrent blogging blogs boards of canada book books bughuntday bundle caching cake cal evans calendar career cat cerf certificate cfp cilex clear cms cologne common sense communities community components composer conference conferences contest continuous integration contribute contribution crisis css curl custom d-day datetime DbFinderPlugin decorator decorators deployment deps devdays development directoryindex directoryiterator docblox doctrine documentation download dpc dpc09 dpc10 dpc11 DPC2008 dreamhost drupal dv7 eclipse ed editors efficiency enterprise errors event events expertise ezcomponents facebook filter-branch filteriterator finland flickr fork framework frameworks freelance freeze frontend fun game games geoip germany getting real git github globiterator gnome-do google google calendar googletalk graceful degradation hack hackers hidden gem hiphop howto hp HR html http i386 ibuildings icann ide ideasofmarch idm imovie inclusivity indy ingewikkeld integration international php conference internet interview ipad IPC ipc ipc08 ipc10 ipc11se iterators iterm2 javascript jenkins jenkins-php job job openings jobeet john peel joomla joomladays kiva kubuntu launcher launchy left on the web libcurl libraries library lighttpd lime linktuesday linux live london loudblog m2ts mac magazines malware mambo marjolein mediterra meeting meme meta methodology micro-financing microframework microsoft migration movie music mysql namespace namespaces netbeans netherlands newsfire nllgg northeastphp nos odmarco open source opinion ORM osx paradiso paris partnership pavilion pear pecl performance personal pfc10 pfc11 pfcongres pfcongrez pfz photo php PHP php5.3 phpabstract phpazure phpBB phpbb phpbelgium phpbenelux phpbnl10 phpday phpdoc phpdocumentor phpgg phpitalia phpnw phpnw08 phpnw11 phpstorm phptek phptek09 phpuk2009 phpUnderControl phpunit php|architect php|tek podcast politics portability postcrossing presentation presentations private projects protected prototype PSR-0 public python qa qr codes re2c recruiting refactoring review rewrite ruby on rails san francisco schedule scifi script security sensio seven things sfdaycgn sflive2011 shell scripting silex simplexml slides smfony software sogeti solar sound speakers spl ssh standard standards star trek static steer strings stylesheets subversion symfony symfony live Symfony2 symfonycamp symfonyday symfonylive symfonyUnderControlPlugin talk talks tech techademy technology techportal tek09 telecommuting terratec terrorism testfest testing textmate textpattern the right tool timeout tips tld todo tomas tools training twig uncon unet usability usergroup validation vhost video vim vinyl virus warp webinar weblogging webservices wiki windows winphp women wordpress work workshop world world of warcraft wpi writing wunderlist xml xpath xsd yara year youtube zc11 ZCE zemanta zend zend framework zend server zend studio zendcon Zend_Form zite
© 2004 - 2012 Stefan Koopmanschap + Powered by Symfony, photos powered by Flickr, links powered by Delicious, Shanghai smilies by Iconbuffet. Feeds: rss / atom. Left on the Web v4.4.0.1