Ferodynamics Network

popular: profile privacy, mobile privacy

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?

My Experience Of Flexx
4 comments
page 1026
Why You Should Try Netbeans
6 comments
page 973
Wpunlimited The Ultimate Wordpress Theme
3 comments
page 1141
Auto Cycle Fun With Sidebar Tabs
one comment
page 1129
Post Image The Easy Peasy Way
26 comments
page 1065
Beware Wp Cache
8 comments
page 1310
Wordpress 25 Exif Fields
12 comments
page 230
Html 5 Gallery
6 comments
page 1305
Quick N Dirty Comment Stats
no comment
page 130
Beware Wp Cache
8 comments
page 1310
Divine Proportions
3 comments
page 145
Beware Wp Cache
8 comments
page 1310
Html 5 Gallery
6 comments
page 1305
Charcoal Theme Available For Wordpress
2 comments
page 959
Html 5 Gallery
6 comments
page 1305
Post Image The Easy Peasy Way
26 comments
page 1065
Post Image The Easy Peasy Way
26 comments
page 1065
Quick N Dirty Admin Login Screen
no comment
page 128
Html 5 Gallery
6 comments
page 1305
Wordpress Chat
one comment
page 1308
Html 5 Gallery
6 comments
page 1305
Silence Is Golden
3 comments
page 213
Questions About Habari For Wordpress Users
6 comments
page 424
Theming Habari Vs Wordpress
13 comments
page 440
My Experience Of Flexx
4 comments
page 1026
Plugin Update Fun With Photo Data 2
one comment
page 815
Post Image The Easy Peasy Way
26 comments
page 1065
Categories Vs Tags Either Neither Or Both
12 comments
page 7
Gaining Benefits From Plugins
8 comments
page 1167
Fun With Theme Widgets
24 comments
page 867
Beware Wp Cache
8 comments
page 1310
Six Million Ways To Die Choose One
14 comments
page 1128
Post Image The Easy Peasy Way
26 comments
page 1065
Post Image The Easy Peasy Way
26 comments
page 1065
Wordpress Chat
one comment
page 1308
Post Image The Easy Peasy Way
26 comments
page 1065
  updated 1 seconds ago
Friday, 1pm
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.