The company wants to configure a new server. I heard that PHP7 is very efficient now, but I don't know if PHP7 can be directly used in the production environment now. Are there any bugs or potential vulnerabilities ??? The company wants to configure a new server. I heard that PHP7 is very efficient now, but I don't know if PHP7 can be directly used in the production environment now. Are there any bugs or potential vulnerabilities ???
Reply content:
The company wants to configure a new server. I heard that PHP7 is very efficient now, but I don't know if PHP7 can be directly used in the production environment now. Are there any bugs or potential vulnerabilities ???
My company's self-developed project is on PHP7.
In my experience, I 'd like to tell you a few notes for migrating data to PHP 7.
Some special usage or functions of PHP7 are discarded.
If your project is self-written and completely independent from external frameworks, you are relatively easy to know whether these obsolete functions are used. However, if your project depends on a framework, especially the old version of a framework, or an external library (such as dependencymysql_*
Function database class), you need to know whether the framework is compatible with PHP 7, which is cumbersome.In particular, the upgrade from the current version to the 5.6 version is not compatible.
Extensions of external dependencies may not start to support or support PHP7 well.
Redis PHP 7 has been release, but whether your project depends on some other extensions also requires one-by-one troubleshooting.
References
Changes to backward compatibility of PHP 7
There must be bugs. potential vulnerabilities cannot be said to be none, at least not found at present.
A bunch of applications have been on PHP7 long ago, including Weibo. My personal project https://laravist.com is also a PHP 7 project. The performance has improved a lot, so don't worry. use it directly.
Just try it.
You can try it. we saw that PHP 7 was being pushed at the developer conference.
No problem at all. if you don't believe it, you can ask laruence.
You can use it with confidence. laruence said that he fixed the bug directly.
My business project has been using PHP7 for a long time and there is no problem.
Sisters
My blog has been upgraded since php7 was released.
The company's production environment has not yet been upgraded
Upgrade php7 for new projects after php7 is a trend
The newer the version, the more unstable