Analysis of the differences between VC9 VC6 Thread Safe and Non Thread Safe when downloading PHP 5.3

  • 2020-03-31 21:39:10
  • OfStack

Totally gave four versions, VC9 x86 Non Thread Safe, VC9 x86 Thread Safe, VC6 x86 Non Thread Safe, VC6 x86 Thread Safe, this let me the novice headache ah, also good PHP website to download the place on the left there is a English choose I understand, I guess is how to select the version of the mean, and began to look up dictionary and Internet search, finally understand the specific meaning, to make a memo first.

How to choose VC9 version and VC6 version of PHP5.3

VC6 is compiled using the Visual Studio 6 compiler. If your PHP is built using Apache, choose VC6.

The VC9 version is compiled using the Visual Studio 2008 compiler. If your PHP is built using IIS, choose VC9.

How to choose the Thread Safe and Non Thread Safe versions of PHP5.3

Taken literally, Thread Safe is thread-safe and executes with a Thread security check to prevent system resources from being exhausted by starting a new CGI execution of a new Thread with a new requirement. Non Thread Safe is non-thread-safe and does not perform Thread security checks at execution time.

Let's take a look at two implementations of PHP: ISAPI and FastCGI.

The execution method of ISAPI is in the form of DLL dynamic library, which can be executed after being requested by the user, and will not disappear immediately after a user request is processed. Therefore, Thread safety check is needed to improve the execution efficiency of the program. Therefore, if PHP is executed by ISAPI, it is recommended to select Thread Safe version.

The FastCGI execution method is a single Thread to perform operations, so there is no need for Thread security check, and the protection of Thread safety check can improve the execution efficiency instead. Therefore, if FastCGI is used to execute PHP, it is recommended to choose the non-thread Safe version.

Let's take a look at two implementations of PHP: ISAPI and FastCGI.

FastCGI execution way is based on a single thread to perform the operation, so don't need to do a thread safety inspection, removal of thread safety check protection can improve the execution efficiency instead, so if is FastCGI (whether collocation IIS 6 or IIS 7) execute PHP, recommend download, execute non - thread safe PHP (PHP binary file there are two types of packing: msi, zip, please download the zip package).

Thread safety checks are for isapi-style PHP, because many PHP modules are not thread-safe, so you need to use Thread Safe PHP.

So, for PHP5.2, select the Thread Safe version installation, and for PHP5.3, download none-thread Safe, which is more efficient for executing PHP.

In addition, PHP has VC6, VC9 version of the division.

VC6 is compiled using the Visual Studio 6 compiler. If your PHP is built using Apache, choose VC6.

The VC9 version is compiled using the Visual Studio 2008 compiler. If your PHP is built using IIS, choose VC9.

Related articles: