Comments on: Why not PHP 5? http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/ The Killersoft Blog by Clay Loveless Tue, 18 Nov 2008 09:33:55 +0000 http://wordpress.org/?v=2.2.3 By: Clay http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-31019 Clay Mon, 23 Jul 2007 18:09:50 +0000 http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-31019 @GAMES .. "Obviously, I’m all for upgrading etc. and development..." Oh, obviously. :) The performance improvements in PHP 5 are well documented. If you feel like you and your customers wouldn't benefit from that, perhaps you need to rethink the service business? @GAMES .. “Obviously, I’m all for upgrading etc. and development…”

Oh, obviously. :)
The performance improvements in PHP 5 are well documented. If you feel like you and your customers wouldn’t benefit from that, perhaps you need to rethink the service business?

]]>
By: games http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-31018 games Mon, 23 Jul 2007 17:53:45 +0000 http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-31018 Why bother upgrading? Our customers won't benefit, and therefore we don't benefit. Things are working fine now – as they say, “if it ain't broke, don't fix it.” Sorry for the cliché, but it's the truth here. However, when we need to do some extra coding or whatever, we generally then rather do it in PHP 5 – but the old stuff can stay as it is, it's working fine. Obviously, I'm all for upgrading etc. and development, but here it's just not really worth it right now. Why bother upgrading? Our customers won’t benefit, and therefore we don’t benefit. Things are working fine now – as they say, “if it ain’t broke, don’t fix it.”

Sorry for the cliché, but it’s the truth here. However, when we need to do some extra coding or whatever, we generally then rather do it in PHP 5 – but the old stuff can stay as it is, it’s working fine.

Obviously, I’m all for upgrading etc. and development, but here it’s just not really worth it right now.

]]>
By: Clay http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-26348 Clay Sat, 30 Jun 2007 14:36:21 +0000 http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-26348 Tom, I suggest switching your project to PHP 5 now. There are only a handful of actual, code-breaking incompatibilities between PHP 4 and PHP 5 -- you do not have to write in E_STRICT-compliance to get code running on PHP 5. Switch now, troubleshoot the little things like array_merge() usage and the other things described here: http://www.php.net/manual/en/migration5.incompatible.php ... and don't look back. Tom,

I suggest switching your project to PHP 5 now. There are only a handful of actual, code-breaking incompatibilities between PHP 4 and PHP 5 — you do not have to write in E_STRICT-compliance to get code running on PHP 5.

Switch now, troubleshoot the little things like array_merge() usage and the other things described here:

http://www.php.net/manual/en/migration5.incompatible.php

… and don’t look back.

]]>
By: Tom http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-26347 Tom Sat, 30 Jun 2007 14:17:21 +0000 http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-26347 Ok, I have an entire development team started on PHP 4.3; I have a client who wants latest and greatest version of PHP. I am stuck in middle, what would be your call? Ok, I have an entire development team started on PHP 4.3; I have a client who wants latest and greatest version of PHP. I am stuck in middle, what would be your call?

]]>
By: Steven Birch http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-15918 Steven Birch Tue, 01 May 2007 20:12:39 +0000 http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-15918 Some distros, say Redhat Enterprise, which caters to the stable and support needs of enterprise and many hosting providers clients, did not have an official release of php 5 and mySQL 5 until the recently released Redhat Enterprise v5. Seeing as how RHEL and CentOS are quite popular and ship with php 4.3.x and MySQL 4.1.x with security and bug backports it makes sense why many have not upgraded. You realize there are a measurable number of php 4.1.x and MySQL 3.x users still in the world too right? Why would you not upgrade to MySQL 4 or 5 yet? same question. Then again I know a lot of users still running Windows 2k instead of XP (much less Vista) or OS X 10.2.x or 10.3.x though 10.4.x has been out for quite some time... This can go on and on... why are the officially supported versions of apache for control panels like cPanel for hosting companies still based on apache 1.3.x code, and usually ship as well with php 4.x? In many cases the reason hosting companies have not upgraded many of these is simply the control panel companies so many base their management on are behind the times as well... Not always an issue with the hosting companies or IT staff, it simply could be the selection of OS or management products that are still shipping older versions for stability or unknown reasons as well. Always easy to say "why don't you" if you don't manage 100's or 1,000's of servers, and 10's or hundreds of thousands of clients accounts ... breaking a single user is an oops if they are running older code, forcing 10's or 100's of thousands of users to possible break their web sites all at once if they are running code that does not work on php 5 is a great way to go out of business :) Some distros, say Redhat Enterprise, which caters to the stable and support needs of enterprise and many hosting providers clients, did not have an official release of php 5 and mySQL 5 until the recently released Redhat Enterprise v5. Seeing as how RHEL and CentOS are quite popular and ship with php 4.3.x and MySQL 4.1.x with security and bug backports it makes sense why many have not upgraded. You realize there are a measurable number of php 4.1.x and MySQL 3.x users still in the world too right? Why would you not upgrade to MySQL 4 or 5 yet? same question.

Then again I know a lot of users still running Windows 2k instead of XP (much less Vista) or OS X 10.2.x or 10.3.x though 10.4.x has been out for quite some time…

This can go on and on… why are the officially supported versions of apache for control panels like cPanel for hosting companies still based on apache 1.3.x code, and usually ship as well with php 4.x? In many cases the reason hosting companies have not upgraded many of these is simply the control panel companies so many base their management on are behind the times as well…

Not always an issue with the hosting companies or IT staff, it simply could be the selection of OS or management products that are still shipping older versions for stability or unknown reasons as well. Always easy to say “why don’t you” if you don’t manage 100’s or 1,000’s of servers, and 10’s or hundreds of thousands of clients accounts … breaking a single user is an oops if they are running older code, forcing 10’s or 100’s of thousands of users to possible break their web sites all at once if they are running code that does not work on php 5 is a great way to go out of business :)

]]>
By: Michael Kimsal http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-7967 Michael Kimsal Fri, 16 Feb 2007 14:00:25 +0000 http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-7967 Terry, one other thing you might remember from the PHP3->PHP4 migration days is that you could run both as Apache modules in the same Apache server. In my view, this is the biggest thing holding back PHP4->PHP5 adoption. And since it's been nearly 3 years and there hasn't been a way to make it happen yet, it doesn't seem to be high on anyone's priority list to change that roadblock. I wrote a bit more about it at my blog, but that to me is the biggest stumbling block to widespread PHP5 adoption. Terry, one other thing you might remember from the PHP3->PHP4 migration days is that you could run both as Apache modules in the same Apache server. In my view, this is the biggest thing holding back PHP4->PHP5 adoption. And since it’s been nearly 3 years and there hasn’t been a way to make it happen yet, it doesn’t seem to be high on anyone’s priority list to change that roadblock. I wrote a bit more about it at my blog, but that to me is the biggest stumbling block to widespread PHP5 adoption.

]]>
By: Michael Kimsal’s weblog » Why not PHP5? http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-7966 Michael Kimsal’s weblog » Why not PHP5? Fri, 16 Feb 2007 13:37:52 +0000 http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-7966 [...] saw these two blog posts around the web recently and thought I’d add my two cents.  The core question [...] […] saw these two blog posts around the web recently and thought I’d add my two cents.  The core question […]

]]>
By: Gaetano Giunta http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-7884 Gaetano Giunta Wed, 14 Feb 2007 11:10:48 +0000 http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-7884 All of those have already been reported, here's my take in order of importance 1) Dog-bytes-tails problem: - ISP does not upgrade - coder of shrinkwrap php sw needs to still cater to users stuck on old platform - ISP is not compelled to upgrade since apps keep running on php4 - etc.. 2) php 5 was not really stable until 5.1.X (and not the first point releases). Plus minor api changes in-between 5.X 3) way too many small changes not really necessary but impacting your code (eg. making var deprecated instead of assimilating it to public, deprecating is_a, functions returning class/function names now respect case, curlinfo spits array instead of string, etc...) 4) not really huge gains for existing codebases (which will probably make usage of php libraries for doing json, xmlrpc, soap and the like) All of those have already been reported, here’s my take in order of importance

1) Dog-bytes-tails problem:
- ISP does not upgrade
- coder of shrinkwrap php sw needs to still cater to users stuck on old platform
- ISP is not compelled to upgrade since apps keep running on php4
- etc..

2) php 5 was not really stable until 5.1.X (and not the first point releases). Plus minor api changes in-between 5.X

3) way too many small changes not really necessary but impacting your code (eg. making var deprecated instead of assimilating it to public, deprecating is_a, functions returning class/function names now respect case, curlinfo spits array instead of string, etc…)

4) not really huge gains for existing codebases (which will probably make usage of php libraries for doing json, xmlrpc, soap and the like)

]]>
By: terry chay http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-7864 terry chay Wed, 14 Feb 2007 00:03:00 +0000 http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-7864 Is this such a big deal? I’ve used PHP 5 in production environments since it was beta (yes, beta), but now I work at a company that is PHP 4 and migration is not a snap: we have millions of users spread across over a hundred machines in an environment that works and there are not enough reliable acceptance tests to make this simply flipping a switch somewhere. Migration is easy when you have provable large performance, development or feature gains. PHP 5 doesn’t do that for some of us. It honestly doesn’t. Assuming we get the bugs worked out, we could maybe improve the efficiency of our site by 20% with the improved object model and the availability of extensions for xml parsing, JSON, and memcache. Maybe if our site used XML more… Those of us old enough to remember the PHP 3 to PHP 4 migration remember that it took a very long time (I switched our commercial site from PHP 4 at the end of 2000, but most sites were using PHP 3 for years afterward) and unlike PHP4, that offered real performance gains (Zend Engine vs. run-time) and features (object orientation, more extensions, etc.) with less compatibility headaches at a time when sites weren't making tens of thousands to millions of dollars a day. So migration for us will be tough and will involve me working extra hours in my spare time. I’m down with that. There are bigger rocks for to deal with during the day. PHP 6 has the right idea: break backward compatibility and those who need features like i18n, APC, etc. will do the work to upgrade. The rest of the world can use PHP 5 or even 4. And from that perspective, migrating to PHP 5 from PHP 4 makes a baby step to PHP 6. -terry Is this such a big deal?

I’ve used PHP 5 in production environments since it was beta (yes, beta), but now I work at a company that is PHP 4 and migration is not a snap: we have millions of users spread across over a hundred machines in an environment that works and there are not enough reliable acceptance tests to make this simply flipping a switch somewhere.

Migration is easy when you have provable large performance, development or feature gains. PHP 5 doesn’t do that for some of us. It honestly doesn’t. Assuming we get the bugs worked out, we could maybe improve the efficiency of our site by 20% with the improved object model and the availability of extensions for xml parsing, JSON, and memcache. Maybe if our site used XML more…

Those of us old enough to remember the PHP 3 to PHP 4 migration remember that it took a very long time (I switched our commercial site from PHP 4 at the end of 2000, but most sites were using PHP 3 for years afterward) and unlike PHP4, that offered real performance gains (Zend Engine vs. run-time) and features (object orientation, more extensions, etc.) with less compatibility headaches at a time when sites weren’t making tens of thousands to millions of dollars a day.

So migration for us will be tough and will involve me working extra hours in my spare time. I’m down with that. There are bigger rocks for to deal with during the day.

PHP 6 has the right idea: break backward compatibility and those who need features like i18n, APC, etc. will do the work to upgrade. The rest of the world can use PHP 5 or even 4.

And from that perspective, migrating to PHP 5 from PHP 4 makes a baby step to PHP 6.

-terry

]]>
By: Rik http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-7845 Rik Tue, 13 Feb 2007 13:05:22 +0000 http://killersoft.com/randomstrings/2007/02/12/why-not-php-5/#comment-7845 I would love to move to PHP5 but my host won't upgrade. Time to move to a new host. I would love to move to PHP5 but my host won’t upgrade. Time to move to a new host.

]]>