Why does PHP5.3 not support ISAPI? Why should it be divided into the ETS and TS versions?

Source: Internet
Author: User
Since PHP5.3.1 and later versions, the ISAPI mode is no longer supported. Why is the official PHP release of the default and TS versions in windows still available? Since PHP 5.3.1 and later versions, the ISAPI mode is no longer supported. Why is the official release of the default and TS versions of PHP in windows?

Reply content:

Since PHP 5.3.1 and later versions, the ISAPI mode is no longer supported. Why is the official release of the default and TS versions of PHP in windows?

No man? This is the pace to sink!

The ISAPI Server Extension is a DLL that can be loaded and called by the HTTP server. Internet server extensions are also called Internet server applications.
(ISA) is used to enhance the functions of servers that comply with the Internet Server API (ISAPI. ISA
It is called by a browser application and provides similar functions to Common Gateway Interface (CGI) applications.

Php5 non-thread-safe and thread-safe versions

PHP5.2.10 and PHP5.2.10, None-Thread Safe and Thread
The two Safe versions are available. What are the differences between the two versions? How should they be selected as users? The following is a description of juyou.
First, literally, None-Thread Safe is non-thread security, and no Thread security check is performed during execution. Thread
Safe is thread security. During execution, the thread security check is performed to prevent the CGI execution method of new threads from consuming system resources.

Let's take a look at two PHP Execution Methods: ISAPI and FastCGI. 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.
FastCGI (whether with IIS 6 or IIS 7) for PHP Execution, we recommend that you download and execute non-thread safe PHP (PHP
There are two methods of binary watermark: msi and zip. Please download zip
Kit ). 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.

As explained in the two paragraphs, you do not need the TS version.
However, there must be some places where TS is needed. Otherwise, they will be divided into ISAPI and FastCGI, rather than TS and ETS.

Apache mod_php adopts the multi-thread mode, and some command line php applications also need multi-thread support.

PHP on Linux is also different from TS versions. By default, the default version is ETS. When configure is added, -- enable-maintainer-zts is compiled into TS version. When do we need TS version? For example, if you want to use the pthreads multi-thread PECL extension, or use MOD_PHP to embed Apache under multi-thread running, for example, the Event MPM provided by Apache on Linux is a multi-process and multi-thread working model. On Windows, the WinNT MPM used by Apache is also a multi-thread model. At this time, the TS version of PHP is required.

If you run PHP with a PHP-FPM (such as mod_fastcgi with Nginx or Apache) or a PHP-CGI (such as mod_fcgid with Apache or IIS on Win, generally, the TS thread-safe version of PHP is not required.

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.