A total of four versions are given, VC9 x86 Non Thread Safe, VC9 x86 Thread Safe, VC6 x86 Non Thread Safe, VC6 x86 Thread Safe. This gives me a headache as a novice. Fortunately, there is an English choose on the left side of the place where PHP official website provides downloads. I understood it, and I guessed that it meant how to choose the version, so I started to look it up in the dictionary and on the Internet. Finally I understood the specific meaning, and I used it as a memo.
1. How to choose the VC9 version and the VC6 version of PHP5.3
The VC6 version is compiled using the Visual Studio 6 compiler. If your PHP is built using Apache, then you should choose the VC6 version.
The VC9 version is compiled using the Visual Studio 2008 compiler. If your PHP is set up using IIS, then you should choose the VC9 version.
2. How to choose the Thread Safe and Non Thread Safe versions of PHP5.3
First understand the literal meaning, Thread Safe is thread safe, and a thread (Thread) safety check will be performed during execution to prevent new threads from starting when there are new requirements. The way CGI is executed consumes system resources. Non Thread Safe is non-thread safe and does not perform thread (Thread) safety checks during execution.
Let’s look at the two execution methods of PHP: ISAPI and FastCGI.
ISAPI execution method is used in the form of DLL dynamic library, which can be executed after being requested by the user. It will not disappear immediately after processing a user request, so thread safety check is required to improve the execution efficiency of the program, so if ISAPI is used to execute PHP, and it is recommended to choose the Thread Safe version;
The FastCGI execution method uses a single thread to perform operations, so there is no need to perform thread safety checks. Removing the protection of thread safety checks can improve execution efficiency, so if FastCGI is used to execute PHP. It is recommended to choose the Non Thread Safe version.
Let’s look at the two execution methods of PHP: ISAPI and FastCGI.
FastCGI execution method uses a single thread to perform operations, so there is no need to perform thread safety checks. Removing the protection of thread safety checks can improve execution efficiency. Therefore, if FastCGI (whether paired with IIS 6 or IIS 7) is used to execute PHP , it is recommended to download and execute non-thread safe PHP (PHP binary files have two packaging methods: msi and zip, please download the zip package).
The thread safety check is prepared for ISAPI PHP. Because many PHP modules are not thread safe, you need to use Thread Safe PHP.
So, for PHP5.2, choose the Thread Safe version to install, and for PHP5.3, download None-Thread Safe, which is more efficient when executing PHP.
In addition, PHP also has VC6 and VC9 versions.
The VC6 version is compiled using the Visual Studio 6 compiler. If your PHP is built using Apache, then you should choose the VC6 version.
The VC9 version is compiled using the Visual Studio 2008 compiler. If your PHP is set up using IIS, then you should choose the VC9 version.
The above has introduced the analysis of the differences between VC9, VC6, Thread Safe, and Non Thread Safe when downloading PHP 53, including the content of the voice of holland. I hope it will be helpful to friends who are interested in PHP tutorials.