[2] PHP version VC6 and VC9, Thread safe and none-thread safe and so on the difference php major version of the main divided into three: PHP4/PHP5/PHP6, PHP4 because too old, the lack of support for QQ has basically been eliminated, please disregard PHP4. PHP6 because there is no application on the production line, but also basically a concept product, a lot of features have been implemented on the PHP5.3.3, so do not elaborate, please disregard PHP6. The PHP5 version is divided into four main branches: PHP5.2, php5.2.x, PHP5.3, and the PHP5.4 of the previous release. Selecting versions prior to version PHP5.2 is not worth considering because of some feature defects or bugs. PHP5.4 is also in beta trial version number, non-stable version, please disregard PHP5.4. Mainstream PHP programs have the best compatibility with php5.2.x, and the upgrade of each version number brings security and stability improvements, so pick the latest version. At present the PHP5.2 series is the newest PHP5.2.17. And if the product is self-development of their own use, PHP5.3 in some aspects of the more advantageous, in the stability of a better, increased a lot of PHP5.2 does not have the function, such as built-in php-fpm, more perfect garbage collection algorithm, the introduction of namespaces, SQLITE3 support and so on, is the department The project is worth considering, highly recommended PHP5.3.3. In addition to the version number, the same version number of the PHP version is also different, and in the choice of PHP extension should be noted.
- Install version: an executable MSI format installation package.
- Zip version: Unzip can be used. No difference from the install version. We recommend that you select the zip version.
- Debug Version: End users don't need to care.
VC6 and VC9 If you use PHP under Apache1 or apache2, you should choose VC6 version if you use PHP under IIS you should choose VC9 version, VC6 version uses visual Studio6 to compile, VC9 use visual Studio 2008 compiled, and improved performance and stability. The VC9 version of PHP requires you to install the Microsoft C + + Runtime. Do not use the VC9 version under Apache. TS and ntsts refer to thread Safety, which is threaded, and is typically selected when IIS is loaded in ISAPI mode. NTS is the None-thread Safe, usually in fast CGI run time to choose this version, with better performance. The first Windows version of PHP3.0.17, released on October 20, 2000, started with a thread-safe version, because unlike the Linux/unix system, which works in a multi-process manner, Windows systems work in a multi-threaded way. It is very slow to run PHP as CGI under IIS, because the CGI pattern is built on a multi-process basis, not multithreaded. In general, we will configure PHP to run in ISAPI way, ISAPI is multi-threaded way, so much faster. There is a problem, however, that many commonly used PHP extensions are developed with Linux/unix's multi-process thinking, which can be faulted when running in ISAPI mode. Therefore, the CGI mode under IIS is the safest way to run PHP, but the CGI mode requires reloading and uninstalling the entire PHP environment for each HTTP request, which consumes a huge amount. To take into account the efficiency and security of PHP under IIS, Microsoft has given the fastcgi solution. FastCGI can allow the PHP process to be reused instead of every new request to re-open a process. FastCGI can also allow several processes to execute simultaneously. This solves the problem that the CGI process pattern consumes too much, and the CGI process pattern does not have the advantage of the thread security problem. Therefore, if you are using ISAPI to run PHP, you must use the thread safe version, while running PHP in fastcgi mode, there is no need to use thread security, with none thread safe (NTS, non-thread-safe) Version to better improve efficiency. View version a very simple way is to phpinfo (); Thread Safety Disabled is nts,enabled is tsconfigure command See VC98 the word is VC6, compiler marked MSVC9 (Visual C + + 2008) is VC9 under WIN7: IIS7+NTS+FASTCGI+VC9 is the best partner or APACHE+FASTCGI+NTS+VC6. Under WinXP: Apache+ts+apache module +VC6 is the most suitable partner.
PHP Version Differences