Release Notes for PHP (thread safe and non thread safe) under Windows

Source: Internet
Author: User
Tags vc9

Reprint "Http://www.taoz11.com/archives/300.html"

Linux directly download the source code, compiled on the server, found that there are 4 versions of Windows:

VC9 x86 Non Thread Safe
VC9 x86 Thread Safe
VC6 x86 Non Thread Safe
VC6 x86 Thread Safe

Online view of the following 4 versions corresponding to the use of the situation

I. How to select the VC9 version and the VC6 version of php5.3
The VC6 version is compiled with the Visual Studio 6 compiler, and if your PHP is built with Apache, you choose the VC6 version.

The VC9 version is compiled with the Visual Studio 2008 compiler, and if your PHP is built with IIS, you choose the VC9 version.

Second, how to choose the PHP5.3 thread safe and Non thread safe version

In the first place, it is a thread safe to understand the literal meaning that thread security is performed in order to prevent the new requirements from exhausting system resources by starting the CGI execution of new threads. Non thread safe is non-threaded and does not thread (thread) security checks at execution time.

Let's look at two ways of executing PHP: ISAPI and FastCGI.

ISAPI execution mode is used in the form of DLL Dynamic library, can be executed after the user request, after processing a user request will not disappear immediately, so the need for thread security check, so as to improve the execution efficiency of the program, so if it is to execute PHP with ISAPI, it is recommended to choose thread Safe version;

The FastCGI execution is performed with a single thread, so there is no need for thread security checks, and the removal of thread safety checks can improve execution efficiency, so if PHP is executed in FastCGI, it is recommended to choose the Non thread Safe version.

This allows you to choose the PHP version you want to download based on your usage.

Note: ISAPI and fastcgi do not need to be set in PHP, it is webserver operation.

by Phpinfo (); see what version of PHP is currently, thread Safety, this parameter is to see if it is thread safe.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.