开发者

What is wrong with PHP5.3?

I came across lots of hosting companies are unwilling to upgrade to PHP5.3开发者_Python百科. 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!?


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


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜