January 3, 2008

A 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 come to my mind again since I updated my Tabbed Sidebars plugin to use objects and succeeded in messing up the PHP 4 compatibility. I am now considering whether to make future plugins without PHP 4 compatability.

At the heart of my desire for PHP 5 only versions is the fact that I actually just prefer PHP 5. It is the version I learned PHP on and so every compatibility matter seems a back step, even if the reality is different.

I also feel that PHP 5 is a route to being a better programmer overall. PHP 4 doesn’t support Private and Protect members or Try… Catch blocks for example.

Note that none of this is really about doing things. Sure the object support is better as is the XML support but that isn’t my motivation. I would just prefer not to deal with PHP 4 any more.

For anyone who’s tempted to lump me in with the GOPHP5 crowd, don’t. My intentions really are not that noble; I honestly have no agenda beyond personal preference.

Alec at FolioVision has discussed not making some plugins PHP 5 compatible, but for different reasons. I would like to think that he’s right, that the number of hosts offering PHP 4 will drop quickly, but I’m not quite so certain.

I don’t recall seeing any other plugins that have a PHP 5 requirement, but that doesn’t mean they aren’t out there. I also recognise that doing it will reduce the potential uptake of anything I do, but I honestly don’t know by how much.

What do you think? Does your host only offer PHP 4? Do you have any strong feelings one way or another? How many plugins would need to be PHP 5 only for you to change hosts?



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 plugin post separator?
no comment on page 1371

Wordpress pictue cache lschen?
9 comments on page 1310

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

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

Html 5 photo gallery?
6 comments on page 1305
  every 1984s, 1s ago, in 0.03s.
 __
(__)
   `
 Adam

It’s a shame that developers are not developing for PHP 5 STILL! There is far more you can do with PHP 5 in terms of the OOP side of the card, and unless people begin switching sometime soon, and shed their fears of compatibility for a 2+ year old version, then just perhaps they’ll find themselves inadequately learned when they finally do.


0s