Questions about php5.4 and php5.2 compatibility

Source: Internet
Author: User
We have bought a new server for php5.4 and php5.2 compatibility, using windows & nbsp; server & nbsp; 2008 & nbsp; r2 to configure php & nbsp; in the 5.4 environment, we developed 2003 and php 5.2. Will the program running be affected if we Port the php to a new server? Or what other issues do I need to pay attention? & Nbsp; compatibility with php 5.4 and php 5.2
We have bought 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?

Share:


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

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.