About
There is three component that identifies a php version.
- The version itself
- The thread safety(nts or not in the distribution file)
- The Visual Studio compiler version
Steps
Get the version
php -version
PHP 5.3.3 (cli) (built: Mar 22 2017 12:27:09)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
Get the thread safety
NTS means non thread safe.
You get this information with the Php - PhpInfo information (php -i gives you Php - PhpInfo information at the command line).
- In the PHP build extension, if you see NTS
php -i | grep -i 'Php Extension Build'
PHP Extension Build => API20090626,NTS
- or in the Thread Safety property ?
php -i | grep Thread
Thread Safety => disabled
Get the visual studio compiler version
The compiler version must be the same than the Web Server compiler version.
If you are using Apache, check in which version it was compiled and take the same php compiler version.
For instance, VC6 Versions are compiled with the legacy Visual Studio 6 compiler.
It seems that you can get this information in the build.
php -i | grep -i 'Php Extension Build'
- Build with VC9
PHP Extension Build => API20090626,NTS
- Build with VC6
PHP Extension Build => API20090626,NTS,VC6