1. Stop the WAMP server.
2. Go to the website windows.php.net download Php-5.4.31-nts-win32-vc9-x86.zip. 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.
OK, tossing for half an hour to be able to solve, and everyone share under