Home > Article > Backend Development > PHP 5.3.1 installation package What are the differences between different versions of VC9 VC6_PHP Tutorial
Recently, I saw a new version of PHP available for download on the PHP official website, so I went up to look for the For Windows version, but at first glance, there were four versions in total, VC9 x86 Non Thread Safe, VC9 x86 Thread Safe, and VC6 x86 Non Thread. Safe, VC6 x86 Thread Safe, this gave me a headache as a novice. Fortunately, I understood the English word "choose" on the left side of the PHP official website where downloads are provided. I guessed it meant how to choose the version, so I started to look up the dictionary and After searching online, I finally understood the specific meaning, so I used it as a memo first. Another advertisement for bkJia. It is said that the boss is going to release a video demonstration, so I will explain it briefly.
1. How to choose the VC9 version and VC6 version of PHP5.3
What is VC6?
VC6 is the legacy Visual Studio 6 compiler, which is compiled using this compiler.
What is VC9?
VC9 is the Visual Studio 2008 compiler, which is compiled with Microsoft's VS editor.
So how do we choose which version of PHP to download?
If you are using Apache+PHP under Windows, please choose the VC6 version;
If you are using IIS+PHP under Windows, please choose the VC9 version.
2. How to choose the Thread Safe and Non Thread Safe versions of PHP5.3
First understand it literally, Thread Safe is thread safe, execution A thread (Thread) safety check will be performed to prevent CGI execution from starting a new thread when there are new requirements and exhausting 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 a DLL dynamic library, which can be executed after being requested by the user. It will not disappear immediately after processing a user request, so a thread safety check is required. In this way Improve the execution efficiency of the program, so if you are using ISAPI to execute PHP, 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 actually improve execution efficiency. Therefore, if FastCGI is used to execute PHP, it is recommended to choose the Non Thread Safe version.
Officially it is not recommended that you use Non Thread Safe in the production environment, so we choose the Thread Safe version of PHP to use.