Differences between VC9, VC6, ThreadSafe, and NonThreadSafe in PHP5.3 _ PHP Tutorial

Source: Internet
Author: User
Tags vc9
Differences among VC9, VC6, ThreadSafe, and NonThreadSafe of PHP5.3. PHP has provided four versions in total, VC9x86NonThreadSafe, VC9x86ThreadSafe, VC6x86NonThreadSafe, and VC6x86ThreadSafe. This makes my rookie a headache. Fortunately, the PHP official website provides a total of four versions of PHP, VC9 x86 Non Thread Safe, VC9 x86 Thread Safe, VC6 x86 Non Thread Safe, and VC6 x86 Thread Safe, which makes this Cainiao a headache, fortunately, there is an English choose on the left where the PHP official website provides download. I have understood it. I guess it means how to select the version. so I started to look up the dictionary and search the Internet, finally, I understood the specific meaning and used it as a memo first.

VC6 is compiled using the Visual Studio 6 compiler. if your PHP is set up using Apache, select VC6.

VC9 is compiled using the Visual Studio 2008 compiler. if your PHP is set up using IIS, you can select VC9.

First, it is literally understood that Thread Safe is Thread security, and Thread security check is performed during execution, to prevent the new thread from consuming system resources by starting the CGI execution mode. Non-Thread Safe is Non-Thread security and does not perform Thread security checks during execution.

Let's take a look at two PHP execution methods: ISAPI and FastCGI.

The ISAPI is executed in the form of a DLL dynamic library. it can be executed after a user request. after processing a user request, it will not disappear immediately. Therefore, thread security check is required, in this way, the program execution efficiency is improved. if you use ISAPI to execute PHP, we recommend that you select the Thread Safe version;

FastCGI executes operations in a single thread, so it does not need to perform thread security checks. apart from the thread security check protection, it can improve the execution efficiency, if you use FastCGI (whether with IIS 6 or IIS 7) to execute PHP, we recommend that you download and execute non-thread safe PHP (PHP binary files have two packaging methods: msi and zip. download the zip package ).

The Thread security check is prepared for PHP in The ISAPI mode. because many php modules are not Thread-Safe, Thread Safe PHP is required.

Running x86 Non Thread Safe, VC9 x86 Thread Safe, VC6 x86 Non Thread Safe, VC6 x86 Thread Safe, which makes me a headache for this Cainiao. Fortunately, PHP official website provides...

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.