GoPHP5.org

Posted on July 5, 2007 by agentrickard

Support GoPHP5.org

How many people does it take to start a movement? I guess we'll find out.

GoPHP5.org launched today, after a lot of hard work by Robert Douglass, Larry Garfield and Marc Delisle. I know that Larry has been evangelical about contacting web hosts and PHP projects for the last month.

The purpose is to coordinate the movement of Open Source Software (OSS) projects to the exclusive use of PHP 5. Why exclusive? Because there are some incompatibilities between PHP 4 and PHP 5, developers often write workarounds to cover both cases. And, in other cases, we have to avoid using functions that are PHP5-only. Frankly, that just doesn't make much sense to me.

For me, the whole thing started in Sunnyvale, during Dries Buytaert's "State of Drupal" talk at the last Drupal/OpenSourceCMS meeting. After his informal talk, there was open Q&A. And, since we were at Yahoo!, Rasmus Lerdorf was handling the microphone for the audience.

The two had a friendly exchange about why more OSS projects didn't use PHP 5 (Drupal 5.1 and the upcoming 6.0 both run on PHP 4 and PHP 5). The basic answer, from Dries (as I recall it) was so many of our users rely on shared hosts and most shared hosts still only offer PHP 4. Now, pride in his work aside, Rasmus has a vested interest in getting people onto PHP 5 as a platform: if the developer community doesn't use it, support for new features will fall off, and the proect will suffer. Dries discussed this right after the Sunnyvale conference. Rasmus also faces the challenge that the PHP working group can't force people to drop PHP 4. The code is loose, and people can do as they like.

But there are great benefits to moving development to PHP 5 (especially if you like to pass data around using XML).

My position on the issue is simple, but its a complicated kind of simple.

  • I work for a large company where we use PHP 5.2 exclusively in production.
  • On my development machine, I code and test on PHP 5.1.6 (thanks to Marc Liyanage).
  • My web host (for this site) runs PHP 4.4.x
  • I develop and maintain a Drupal module
  • The company I work for runs Drupal and Joomla sites, and Jonah Braun is on our staff.

So one day Jonah was having a barbecue and we started talking about the PHP 4 / PHP 5 debate, and the role of Drupal and Joomla. We agreed, in theory, that the problem for both projects is this: If one declares a move to drop PHP 4 and the other doesn't, the project risks losing users not based on quality, but simply based on the availability of PHP 5.

Now we work on different projects, but Jonah and I agree (I think) that your decision to select software should be based on the merits of the product, not forced restrictions. So we thought: Hey, if we both declare that we're moving to PHP 5 on some arbitrary future date....

After that conversation, I sent a note to Larry (who I knew was working on cool PDO features for Drupal that, yup, require PHP 5), and he thought it sounded like a good idea. That exchange spawned this soon-to-be-infamous post to the Drupal development list.

Since then, thanks to Larry and Robert and everyone else who has commented on, worked on, or debated about the proposal, the GoPHP5.org movement has gathered steam and leaked out to the greater world.

And that's a good thing.

Comments

php4 was hugely popular and

July 8, 2007 by Barren (not verified), 4 years 30 weeks ago
Comment: 135

php4 was hugely popular and what it is today JUST because it was simple - any one with knowledge of html could deal it. php5 is NOT that. All the geekary said and done, it is not that :(

It is not just shared web hosts - but we as users could write or manipulate scripts, php5 is not that way exactly. Thus the danger is that people will either rely on solutions of monopolistic firms or something newer will just push away the complex php like the simple php did to perl !

I find that to be totally

July 8, 2007 by Ken Rickard (not verified), 4 years 30 weeks ago
Comment: 136

I find that to be totally untrue, personally.

I can do the same things in 5 that I could do in 4. Plus more.

Well ... Can you please

July 9, 2007 by Barren (not verified), 4 years 30 weeks ago
Comment: 137

Well ...
Can you please tell me will the scripts working in php4 continue to work in php5 ... i.e. backward compatibility ?

regarding "easy" ness one can surely do much more :) but thats confusing to the non-geek ones ... "oop" is not an easy concept like hello world which made millions embrace php so easily ... infact php was born as it was too complex to do things with perl ..

You're beginning to sound

July 9, 2007 by Ken Rickard (not verified), 4 years 30 weeks ago
Comment: 138

You're beginning to sound like a comment troll, and you need to read up on the topic.

PHP5 _allows_ OOP but does not _require_ it. The Drupal project does not use OOP and is compatible with both PHP4 and PHP5. See this explanation.

As for backwards compatibility, see the PHP documentation.

Thanks a lot for clearing up

July 10, 2007 by Barren (not verified), 4 years 29 weeks ago
Comment: 139

Thanks a lot for clearing up the doubts.
No, I am not a troll:( but read your article with much interest

Thanks again.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <blockquote> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Speaking Engagements

Contact me for availability.

Contact

  • agentrickard [at] gmail [dot] com

Donations

My Amazon.com Wish List