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.