November 17, 2007

PHP 5 has been around for a long time now but it still isn’t getting the takeup that you would expect from the newest version of one of the most popular languages around. There has been some debate about WordPress and PHP 5 over the past 6 months, and I couldn’t go as far as some of them and suggest ignoring PHP 4, but that’s not to say the advantages in PHP 5 should be ignored either.

PHP 5 offers some advantages over PHP4: Better database support, better xml support, better object support not to mention that PHP 6 is not massively distant and will not be as backward compatible as version 5 so any step in the right direction must be a good thing, right? The changes will need to happen eventually.

Because of this, and the fact that I quite like PHP 5, I would quite like to see a PHP 5 only version to run along side the current version.

The benefit of this approach is that, as it is already PHP 5 compatible, nothing needs to change just yet. Just be separate.

I think there would be benefits in freeing up developers who want to work in PHP5 to offer additional (core or otherwise) functionality for that version only. They would be free then to optimise for 5, rather than just being compatible with 5, and to produce plugins that worked on that version alone.

Part of me likes to think that if these developers hit on a seriously good piece of funcationality that this would help drive migration to PHP5 as self-hosters looked for hosts with the appropriate installations but that might well be wishful thinking on my part.

What do you think? do you care? is it too much effor for too little gain? is it a good idea? let me know.



Wordpress feature image page?
24 comments on page 1065

Addsettingsfield?
3 comments on page 793

Shorter link?
4 comments on page 1190

Shorter link?
4 comments on page 1190

Cssimageforlogin?
no comment on page 128

Cssimageforlogin?
no comment on page 128

Get featured image url wordpress?
24 comments on page 1065

How to clear wpcache?
9 comments on page 1310

Photo gallry code html5?
6 comments on page 1305

Wordpress get image size?
24 comments on page 1065

Sitecouk wptheme?
2 comments on page 1376

Wordpress chat disqus?
no comment on page 1308

Howtocreategoodsizelayout?
4 comments on page 1026

Friend connect profile?
6 comments on page 1364

Get medium image from post?
24 comments on page 1065

Tabbed widgets wp?
no comment on page 333

Wordpress pictue cache lschen?
9 comments on page 1310

Wordpress plugin post separator?
no comment on page 1371

Display photos html 5?
6 comments on page 1305

Fun wordpress themes?
2 comments on page 1376

Wp featured image without size?
24 comments on page 1065

Wordpress get url global?
4 comments on page 1190

Wp unlimited?
3 comments on page 1141

Html5 image gallery?
6 comments on page 1305

Wordpress exif plugin?
12 comments on page 230

Css login screen?
no comment on page 128

Htlm 5 photo gallery?
6 comments on page 1305

Css login screen?
no comment on page 128

Comments by intensedebate?
7 comments on page 1175

Image gallery html 5?
6 comments on page 1305

Wordpress andrew rickmann?
2 comments on page 1376

Wordpress medium large?
24 comments on page 1065

Fun with uninstallation wordpress?
53 comments on page 100

How to clear wp cache?
9 comments on page 1310

Photoshop frameworks?
3 comments on page 296

Html5 gallery?
6 comments on page 1305

Html 5 photo gallery?
6 comments on page 1305

Login screen css template?
no comment on page 128

Html5 photo gallery code?
6 comments on page 1305

Wordpress post multiple images?
24 comments on page 1065
  every 1986s, 1s ago, in 0.02s.
 __
(__)
   `
 Andrew Rickmann

But of course now there is an answer – Habari.

 __
(__)
   `
 Stephen

All my new developments are php5… OOP in php5, xml, mysqli, pattern based architecture etc are much better.

…but so much is still php4 (and the damn & for objects by reference).

Making something php5.2 compatable is not the same as being written for php5 . Not even close.

Better to start from scratch & call it something different!

S

 __
(__)
   `
 Compare Free Web Hosting

anybody here know of a good site to find more info on compare free web hosting? I\’ve got this site bookmarked and im gonna keep checking it out, but i still would like to find a site that covers compare free web hosting a little more thoroughly..thanks

 __
(__)
   `
 PHP 5 Only Plugins: Good, Bad, Evil?

[...] little while back I asked whether WordPress should produce an explicitly PHP 5 only version. Reaction was mixed, but ultimately I think Matt has some good reasons for not doing so. This has [...]

 __
(__)
   `
 Why Foliopress WSYIWYG will be PHP5 Only

[...] PHP5 Only Version? [...]

 __
(__)
   `
 Andrew Rickmann

I share your desire Damian but I am perhaps not so optomistic. I guess we will have to wait and see.

 __
(__)
   `
 Damian Manifold

As a plug-in developer for WordPress I’ve been itching to use some of the class stuff that PHP 5 provides. Up till now I haven’t looked to deeply into what else is available since i could not use.
Whilst navigating PHP.net noticed a post from last may saying announcing the end of support of php 4 at the end of the year.
After checking wish my host, they are upgrading my PHP at the end of the year too.
With the end of support I’d be interested to find out how many people will still be left on PHP 4. I would hope none.

 __
(__)
   `
 Andrew Rickmann

Amit, I agree that it would not be a good plan to abandon PHP4 right now.

I guess all I am really suggesting is that there may be benefits in making moves in that direction.

 __
(__)
   `
 Amit Bhawani

Well being a web hosting company i would suggest wordpress not to upgrade to php 5 right now :p, you understand the reason right :p
May be after a year this can happen because right now php4 is ok for everyone i guess.

 __
(__)
   `
 Andrew Rickmann

Di, it certainly might slow down development, but on the other hand it might encourage development that wouldn’t have happened otherwise. The former is probably more likely though.

In all honesty if my host hadn’t already switched to PHP 5 I think I would feel as you do, that it is not worth the effort.

What sways it for me though is that I really like PHP as a language, but it is missing things when you compare it to the big hitters like C#, and Java. PHP 5 is much closer, PHP 6 even more so, and I really want to use these features.

 __
(__)
   `
 Di Turner

Maintaining two versions of WordPress would surely slow down development of new features.

I don’t think making it PHP5 only would compel me to upgrade as fundamentally I’m lazy and it would be too much of a hassle to move my site and email to new hosting.


0.01s