Run
Run

Reputation: 57176

What is wrong with PHP5.3?

I came across lots of hosting companies are unwilling to upgrade to PHP5.3. Most of them gave me the reason is that there are lots of bugs in PHP5.3, so they prefer to keep it at version 5.2.

What is wrong with v5.3 then? is that true what they said - lots of bugs? I haven't come across any bugs on my local server!

Or are they just unwilling to upgrade!?

Upvotes: 10

Views: 462

Answers (3)

Bob Fanger
Bob Fanger

Reputation: 29897

It's not php 5.3 that 's buggy, but it will point out bad practices in application-code by spitting out notices and deprecation warnings.

So when old php libraries are used, you'll probably see a lot of error messages, which could be perceived as bugs.

PHP 5.3.0 was released on 30 June 2009, and 5.2 is no longer officially supported by php.net. If your hosting company doesn't step up, it's time to switch.

Upvotes: 2

digEmAll
digEmAll

Reputation: 57210

For sure is not the only reason, but this (little) change has created a lot of problems in CMS like drupal:

Note: There is no reference sign on a function call - only on function definitions. Function definitions alone are enough to correctly pass the argument by reference. As of PHP 5.3.0, you will get a warning saying that "call-time pass-by-reference" is deprecated when you use & in foo(&$a);.

Quoted from PHP: Passing by Reference

So, probably the first hosting companies moving to php 5.3 had been flooded by support requests coming from little (and unexperienced) web managers.

Hence, I suppose other companies decided to wait for a more stable situation...

Upvotes: 5

mario
mario

Reputation: 145482

  • IIRC the bytecode caches were not ready and adapted for the new ABIs and Zend_core changes when the very first PHP 5.3.0 was released. That's meanwhile solved, but the suspicion sticks.
  • Then there's too few user requests really, since not a whole lot of code depends on 5.3 features yet.
  • A few compatibility breaks exist (there were some WP and Drupal issues, but most of the issues are exaggerated).

And so most shared hosters have no incentive to upgrade existing servers.

Upvotes: 9

Related Questions