PHP5 - Sad state of affairs

POSTED BY niklas on Sep 14 under Work

I’ve been working on installing PHP5 on client webservers the past couple of days, and with some help that’s been going all right. Much I’ve read has been on the merits of PHP5 vs PHP4, little have I read on user experience. So here’s my first experiences with PHP5 and commonly used PHP packages:

After having read many similar suggestions in the various discussion boards, I was left saddened. With the Segfaults, ok, PHP5 hasn’t matured enough yet, but from running a couple of hundred jails with PHP4 I know PHP4 segfaults regularly as well. Just not consistently. But obviously people don’t care to write the PHP-based software they distribute enough to keep up with the general guidelines posted by the PHP developers long ago, the reason that variables like $_GET[] such were introduced. And safe-mode seems to be a no-no. I guess I was to optimistic thinking the pass-by-reference as opposed to pass-by-value would be a little problem for some projects, it seems to be a common problem for many.

So, my task for now will be to move all our clients that want PHP5 back to PHP4 and say no, you can’t have the benefits of PHP5. And you’ll probably go coding something that won’t run PHP5 when finally we can switch to it.

Leave a Comment

If you would like to make a comment, please fill out the form below.

Name (required)

Email (required)

Website

Comments

4 Comments so far
  1. Ali Cossack October 3, 2004 5:06 pm

    Can you maybe outline the benefits of upgrading to PHP5? I’d like to see the differences between 4 and 5.

  2. Nik October 22, 2004 7:50 pm

    Google for it, there are plenty of people that have and so I don’t want to duplicate this. In short, better OOP.

  3. Bharat Mediratta December 8, 2004 7:52 am

    I’m happy to say that we are now testing Gallery 2 with PHP5 on a semi-regular basis and I’ve been able to install and run our 800+ unit tests on it. Its come a long way. G2 would give the early releases of PHP5 a heart attack and it would fall over and die, but now it appears to be a little more stable. If you find issues with G2’s support of PHP5, please let us know in our forums! Thanks!

  4. Nik December 15, 2004 2:50 pm

    Thanks for the heads-up, Bharat. I’m looking forward to testing it soon. :-)

Copyright Niklas Saers, 2000-2008