What is the difference between VC9 and VC6 versions of the PHP 5.3.1 installation package

  • 2020-03-31 20:58:07
  • OfStack

Recently in PHP website to see how to download the new version of the PHP, then go to look For the version of Windows, but a see, 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, good PHP website also provide choose where to download on the left there is a English I understand, I guess it is how to choose the meaning of the version, then began to look up the dictionary and the Internet, finally see the specific meaning, to make a note first. Make an advertisement to PHP100 again, the boss is said to be about to give video demonstration, I explain briefly.


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

What is VC6?
VC6 is the legacy Visual Studio 6 compiler, which is built using this compiler.
What is VC9?
VC9 is the Visual Studio 2008 compiler, compiled using Microsoft's VS editor.

So how do we choose which version of PHP to download?
If you use Apache+PHP on Windows, choose VC6.
If you are using IIS+PHP on Windows, select 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 with 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.

It is not officially recommended that you use Non Thread Safe in a production environment, so we will use the Thread Safe version of PHP instead.

Related articles: