Upgrade the php version in the wamp integrated environment
1. Download the php version compressed package and decompress the php version compressed package
2. Stop the wamp service
3. Replace the wampphp file
4 .Replace php5nsapi.dll and php5ts.dll in the wampApache2bin directory (corresponding to the current php version)
5. Restart the wamp service
6.phpinfo() test
Problems I encountered time zone settings Problem
Solution:
wampApache2binphp.ini
; Module Settings;
;Add time zone setting
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = UTC
;Add new time zone setting
Notes
When upgrading the php version
Because we are replacing the php directory
Some paths in the php/php.ini file may not necessarily match the current wamp path.
Need to modify
Search d:
Find out some paths and modify them to match the current wamp path