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

WBOY
Release: 2016-07-21 15:31:24
Original
775 people have browsed it

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 first.

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 using Apache To set up, then you should choose the VC6 version.

The VC9 version is compiled using the Visual Studio 2008 compiler. If your PHP is built 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 from the literal meaning, Thread Safe is thread safe and will be executed during execution. Thread safety check to prevent CGI execution from starting new threads 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 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 thread safety checks need to be performed to improve the program's performance. Execution efficiency, 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, except for thread safety checks. Protection can actually improve execution efficiency. Therefore, 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 it is FastCGI (regardless of the combination IIS 6 or IIS 7) When executing 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.

Therefore, 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 built using IIS, then you should choose the VC9 version.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/322997.htmlTechArticleA 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, the PHP official website provides downloads...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!