Update to PHP 7 using WAMP in windows
In this article, I am going to tell a simple and efficient way to update PHP version.Let's get a start before wasting any time.
First of all have a go through on the why question.
Why you should update?
At the very beginning, the question erases why anyone wants to update to 7.0. Actually, every update comes with a number of bugs fixes and there are following reasons to update to the latest version.
PHP 7.0 fixes:
- Core bugs.
- Bz2 (integer overflow in Bzdecompress cause heap corruption).
- Calendar related errors.
- Fixed error of DOTNET/COM array parameters broke in PHP 7.
- CURL related errors.
- DOM errors.
- EXIF errors.
- Filter errors.
- FPM errors.
- GD errors.
- Intl errors (segfault class).
- mbstring (mb_ereg_search raises and increments).
- SQLite3 (spurious warning and empty filename).
- Zip (NULL pointer dereference in zend_virtual_cwd.
This was some basic information about the update that should be known to every one.
Reference: http://php.net/ChangeLog-7.php
Before you update your PHP version please check your current version in WAMP.
Check Current Version:
- Run WAMP server.
- Wait until the both Apache and PHP starts.
- Now click on the green icon of WAMP Server. (NOTE: Green signal shows both are running Properly).
- And go down to "PHP" in the list.
- Choose "version" from the sub list of "PHP".
- If it is less than 7.0.10 than u can you are in the right place :).
NOTE: You should have only one version in the list, I have installed already that's why there are three versions.
How to update to PHP version 7.0 using WAMP?
Now you know that you have to update PHP, all you have to do is to follow these following steps:
- Click on the link http://windows.php.net/download/.
- Go down to version 7.0.25. (if you select the upper version than you have to update Apache version too, which is a long procedure and will be discussed later).
- Now you have some options like (Safe Thread and non-safe thread).
- Nothing to worry just check if you have a safe thread or non-safe thread.
- Click on the WAMP icon in Taskbar.
- Click on LocalHost in the list.
- The browser will open and will redirect you to WAMPSERVER Hompage.
- Scroll down to Tools.
- Check Thread Safety is enabled or NOT.
- If Enabled, download Safe version.(Filename: Zip)
- If Disabled, download non-safe version. (Filename: Zip)
- Extract the Zip File.
- Change the name of Folder to (php7.0.10).
- Copy folder and paste it into PHP folder inside WAMP/bin.(Directory: (C:\wamp\bin\php))
- Now Restart WAMP Server.
- Click on WAMP icon and Go to PHP and select version from sublist and select PHP7.0.10.
- WAMP server will restart and wait till the icon goes Green.
You are done Have Fun. :)