Reply to PHP 5.3 and the Future
Mark Evans wrote on his blog interesting post about PHP 5.3 and the Future. I guess the main concern here is similar we used to have with PHP4 to PHP5 migration (GoPHP5 campaign).
Mark raised three questions to the community which I'd like to reply to.
How can the migration path for shared hosting companies be made easier?
For some time PHP 5.2 will still be in use. Therefore hosting companies simply cannot afford dropping support for it. There are many popular PHP applications which are not yet ready for PHP 5.3 (consider Drupal).
However, it's not a big deal to install both PHP 5.2 and 5.3 on the same server and let the customers choose. I've seen it working with PHP 4 and 5. It's even easier with PHP 5.2 and 5.3. It's possible and it's simple.
Furthermore, migrating PHP 5.2 application to 5.3 is not as hard as one would think. Most of PHP frameworks are already updated. In my opinion adaptation will be a lot faster than in case PHP 4 to 5.
However, you should remember that PHP 5.3 applications will be designed differently. With PHP 5.3 you get a number of new features which give a lot of power and affect the application's architecture (like namespaces). Even if you can run old applications on PHP 5.3 sooner or later they will become a legacy you want to get rid of.
If you were writing a new open-source application would you go purely 5.3+?
Definitely yes. Starting a new Open Source project in the PHP 5.2 now, when 5.3 release is more than ready, will make the project live shorter. While all the future applications will head for clear, namespaced structure, yours will still have old-school design.
Someday you'll have to either migrate or rewrite it.
Besides, I don't want to stick to the technology which is headed for extinction. Web development is a very dynamic word. If you cannot adapt to the new trends you're moving backwards. Starting a new Open Source project is a great way to learn all the new features of PHP 5.3.
You could be concerned that application written in PHP 5.3 wouldn't gain a lot of users because of slow adaptation of PHP 5.3 by hosting companies. Well, if the application is good enough users want to have it no matter what. They will go to the early adapting hosting companies. Sooner or later others will be forced to upgrade their servers as well. And as I wrote before it's not a hard task so it should go rather fast.
Do you know of any other open-source applications requiring 5.3+?
There are plans to build phpBB4 based on Symfony 2. This is actually the only application requiring PHP 5.3 I know.
However, there are some frameworks which will support PHP 5.3+ only:
Comments
4 months ago wrote:Or maybe it's just time to opportunely move to python or ruby.
4 months ago wrote:@Gnarf To have even more issues with hosting? :)
4 months ago wrote:The problem is that the php crowd is not one that moves forward easily, I know people that still write for php4, and they think that this is a good idea...
4 months ago wrote:If you say "adaptation will be a lot faster than in case PHP 4 to 5" you might be a bit too optimistic. We have statistics on that: http://w3techs.com/technologies/history_details/pl-php/5
4 months ago wrote:We build new and great ImpressPages CMS on PHP 5.3!!!
There are already few hostig companies that support PHP 5.3 http://www.impresspages.org/cms/forum/viewtopic.php?f=6&t=37
4 months ago wrote:@Mangirdas that's interesting. I will have to take a look at it!
4 months ago wrote:@Sam you might be right I'm too optimistic. I just read that DreamHost will drop PHP4 support in two weeks. Finally... but seriously, PHP 5.2 -> 5.3 is not the same as PHP 4 -> 5
4 months ago wrote:One of the things which seems to be slowing adoption is old open-source applications which aren't compatible with 5.3 for some reason, maybe these need to be identified and either fixed where possible or retired
4 months ago wrote:Good point Mark. I think if WordPress could make it than every project should be able to do it. There are not so many things that needs to be rewritten to achieve PHP 5.3 compatibility. Also, the fact that next releases of major frameworks will support 5.3 only gives me a good feeling.
4 months ago wrote:To add to your list, Arbit tracker [ http://arbitracker.org/ ] runs solely on 5.3+.
As for adoption.. There aren't 10 ways to do it. Either library/framework developers push it, or it'll take forever like PHP5 did. You don't have to drop all support for PHP
about 1 month ago wrote:ImpressPages CMS runs only on PHP 5.3
- Write a comment
















