Upgrade the php version in wamp integrated environment
1. Download the php version compressed package and decompress the php version compressed package
2. Stop wamp service
3. Replace 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 setting 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 time zone setting
Notes
When php version is upgraded
Because we are replacing the php directory
Some paths in the php/php.ini file may not match the current wamp path.
Needs modification
Search d:
Find some paths and modify them to match the current wamp path