Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!?

like image 965
Run Avatar asked Feb 19 '11 16:02

Run


People also ask

What is PHP 5. 3 3?

7, when PHP 5.3. 3 is used, an attacker is able to include and execute arbitrary files on the web server due to insufficient validation of the action parameter to setup/index. php, aka directory traversal.


3 Answers

  • 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.

like image 91
mario Avatar answered Nov 16 '22 00:11

mario


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...

like image 31
digEmAll Avatar answered Nov 16 '22 00:11

digEmAll


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.

like image 42
Bob Fanger Avatar answered Nov 16 '22 00:11

Bob Fanger