Compatibility with php5.4 and php5.2

Source: Internet
Author: User
Regarding php5.4 and php5.2 compatibility, we have now purchased a new server using windows server 2008 r2.
Configure the php 5.4 Environment

We have previously developed php Version 2003 and php version 5.2. Will the program running be affected when it is transplanted to a new server?

Or what other issues do I need to pay attention?


Reply to discussion (solution)

It is hard to say that it should be okay in general. you should try again first and change it if there is any problem.

There will be some impact

For example, $ names = split (". ", $ name); at 5.3 and above, it must be written as $ names = split ("\. ", $ name); (if you remember this item correctly)

This problem occurs in our current project from 5.2 to 5.3, leading to some functional failures.

There are many other such functions, especially those that are no longer used since 5.3. if they are used in previous projects, they will become invalid or report errors.

It is difficult to troubleshoot these errors one by one. if you have the necessary conditions, you can test the errors in the Test environment before upgrading PHP.

Just now Baidu split is 5.3 and the start is "not recommended"
Http://www.jzxue.com/wangzhankaifa/php/201106/20-7870.html

There are also some "no longer supported...
Http://www.csdn123.com/html/20130206/57/260e1100701e4e99ec9d453a38ded1f1.htm

As for 5.4, I have not carefully read the new manual... and have not found any obsolete functions...

It may be affected. we recommend that you re-maintain the program by referring to the php5.4 manual. Some functions are not recommended for use in 5.4, and the code specification in 5.4 is stricter.

Thank you! it seems that we can still get Version 5.2!

Thank you! it seems that we can still get Version 5.2!

In versions earlier than 5.3.14 or 16, we suggest you upgrade the security vulnerability...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.