1. Stop the WAMP server.
2. Go to the website windows.php.net download Php-5.4.31-nts-win32-vc9-x86.zip (32-bit). Do not download the INSTALLER.
3. Create the php5.4.31 folder in wamp/bin/php
4. Unzip the downloaded zip package into the php5.4.31 folder
5. From the existing PHP version file (such as php5.3.10, (eg. wamp/bin/php/php5.3.3)) Copy the following files:-PHP.ini, Phpforapache.ini, and wampserver.conf to the php5.4.31 folder.
6. Open the following files for the php5.4.31 folder:-PHP.ini and Phpforapache.ini and replace 5.3.10 with 5.4.31.
7. Go to Wamp/bin/apache/apache/apache2.2.11/bin to delete the php.ini file. Copy the Php5apache2_2.dll and Php5apache2_2_filter.dll in the 5.3.10 folder into the php5.4.31 (I missed this step to cause the boot to fail)
8. Restart the Wamp.
9. Select the old version 5.3.10
10. Wamp is restarted after selection.
11. You can choose Php->version-> 5.4.31 at this time.
12. Reboot successful.
There may be memcache and curl for some reason, and a series of post-upgrade extensions fail with the need to modify environment variables
System variables, environment variable, advanced system settings, the right-click property, My Computer, locate the path system environment variable, edit the path variable value add a new PHP environment root, save.
If the DLL is missing, you need to go to the relevant website to download the corresponding version of the extension
Wamp Upgrading PHP