888888.888888.88""Yb..dP"Yb..8888b..Yb..dP.88b.88....db....8b....d8.88..dP""b8..dP"Y8
88__...88__...88__dP.dP...Yb..8I..Yb.YbdP..88Yb88...dPYb...88b..d88.88.dP...`".`Ybo."
88""...88""...88"Yb..Yb...dP..8I..dY..8P...88.Y88..dP__Yb..88YbdP88.88.Yb......o.`Y8b
88.....888888.88..Yb..YbodP..8888Y"..dP....88..Y8.dP""""Yb.88.YY.88.88..YboodP.8bodP'


88b.88.888888.888888.Yb........dP.dP"Yb..88""Yb.88..dP
88Yb88.88__.....88....Yb..db..dP.dP...Yb.88__dP.88odP.
88.Y88.88"".....88.....YbdPYbdP..Yb...dP.88"Yb..88"Yb.
88..Y8.888888...88......YP..YP....YbodP..88..Yb.88..Yb

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?

Html 5 Gallery
Photo album html5?
6 comments
page 1305
Post Image The Easy Peasy Way
Permalink attachment to post wordpress?
26 comments
page 1065
Quick N Dirty Bookmark Navigation
Bookmark navigation?
no comment
page 127
Html 5 Gallery
Html5 photogallery?
6 comments
page 1305
Html 5 Gallery
Image gallery using html5?
6 comments
page 1305
Post Image The Easy Peasy Way
Wp get attachment caption?
26 comments
page 1065
Html 5 Gallery
Html5 image?
6 comments
page 1305
What Wordpress Workflow Needs
Wordpress workflow?
3 comments
page 1226
How To Add Sidebars To A Theme
Register more sidebars?
10 comments
page 1053
Html 5 Gallery
Html5 picture gallery?
6 comments
page 1305
Post Image The Easy Peasy Way
Postimagesmedium?
26 comments
page 1065
Post Image The Easy Peasy Way
Wp codex postimagesmedium?
26 comments
page 1065
Post Image The Easy Peasy Way
Wp postimages order?
26 comments
page 1065
Post Image The Easy Peasy Way
Wp postimages order?
26 comments
page 1065
Html 5 Gallery
Html 5 image gallery?
6 comments
page 1305
Post Image The Easy Peasy Way
Php post imagesmedium?
26 comments
page 1065
Fun With Sidebar Tabs Styling
Sidebar image interesting?
2 comments
page 336
Fun With Sidebar Tabs Styling
Styling tabs css?
2 comments
page 336
How To Add Sidebars To A Theme
Add widgetized footer in wordpress theme?
10 comments
page 1053
Post Image The Easy Peasy Way
Theimage wordpress?
26 comments
page 1065
Html 5 Gallery
Html5 image gallery?
6 comments
page 1305
Wordpress Vs Graffiti
Graffiti yb combined?
8 comments
page 95
Poll Daddy Reviewed
Polldaddy poll?
2 comments
page 42
Html 5 Gallery
Html5 gallery?
6 comments
page 1305
Html 5 Gallery
Html5 gallery?
6 comments
page 1305
Post Image The Easy Peasy Way
Wp display all post images?
26 comments
page 1065
Why I Ditched Disqus
Add wordpress comments to friendfeed?
5 comments
page 1175
Quick N Dirty Post Exclusion
Fitler theloop addfilter?
11 comments
page 124
Using Your Own Url Shortener
Constructor and link shortner?
4 comments
page 1190
My Experience Of Flexx
Flexx of genesis wp theme?
4 comments
page 1026
Html 5 Gallery
Html5?
6 comments
page 1305
Wordpress Chat
Tchat page wordpress?
3 comments
page 1308
Quick N Dirty Post Exclusion
Filter wordpress posts plugin?
11 comments
page 124
  1 query every 822 seconds, 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.