PHP 4 is about to die. At least the PHP core wants to kill it, but there is a rift in the PHP community. A lot of PHP developers feel that PHP 5 has betrayed them because of the backward compatibility issues. PHP 5 has failed in adoption, a lot of PHP developers have specifically avoided it.
Some feel that the upgrade to PHP 5 is more troublesome than helpful for the users. Matt Mullenweg, founder of a popular PHP blogging engine called WordPress, says
They say “Web hosts cannot upgrade their servers to PHP 5 without making it impossible for their users to run PHP 4-targeted web apps” ignoring the fact that there isn’t a released PHP app today that isn’t PHP 5-compatible and recent upgrade issues have been caused by PHP itself in point releases. (See WP#3354.) It’s easy to always promote the newest thing, but why, and is it for us or our users?
As a programmer I feel that one should upgrade to PHP 5. Because it has some good things, like pull parsing. Also, I believe that OOP makes writing better code and managing it easier. Not that procedural does not give good code, but with OOP it is a tad easier. Some biggies like Yahoo! and Facebook have migrated to PHP 5.
Having said that I agree with Matt that the upgrade should not be harmful for the end users. And I think the lack of adoption is mainly because there is less tolerance towrads the upgrade. WordPress runs on PHP 4 and 5 both, it might not require any specific PHP 5 features. However I am sure there will be cases when PHP 5 can help. There is gophp5, but I think effort is required in gaining confidence of the user community and probably a better plan from the PHP core team to upgrade to PHP 5. Even if it does not provide any specific benefit to the end user, at the least it should not be harmful.

July 18th, 2007 at 9:34 pm
Although I only run PHP5 on my servers, I find I have to code for PHP4 because of the sheer number of servers still running it. I’d love to be able to take advantage of PHP5’s features, but the only way to do that is to fork my projects into PHP4 and 5 versions which is just too much trouble.
I really think that hosts should start making plans to migrate servers to php5 en-mass, but it doesn’t seem to be happening outside of the smaller companies.
July 23rd, 2007 at 11:08 am
[...] was reading an article on ifacethoughts about the debate and it’s what brought upon this entry. Yes I see that the [...]
August 4th, 2007 at 11:28 pm
[...] The PHP Rift [...]
August 29th, 2007 at 3:57 pm
I fully agree that the adoption of PHP5 has been nowhere near what was expected and many people are still happy to code in PHP4. In addition to this, there’s also a LOT of legacy code out there that needs PHP4 in order to run. Really I think it’s up to the community to voice their opinion, like we’re doing now really, and hope that we are listened to.
January 3rd, 2008 at 5:11 pm
[...] ifacethoughts: The PHP Rift [...]
February 7th, 2008 at 3:19 pm
[...] Now Lucene is available in the PHP land as well, brought by Zend Framework, and it is much better than other Lucene implementations. I think it is great that now PHP applications can build their own search engines using this. The caveat is that it is PHP 5 only, while most of the PHP applications have still not jumped the divide yet. [...]