Why does PHP 5.3 not support ISAPI, and why is it divided into NTS and TS versions?

Source: Internet
Author: User
Since the beginning of PHP 5.3.1, the ISAPI mode is no longer supported, so why is PHP officially still releasing the NTS and TS two versions under Windows?

Reply content:

Since the beginning of PHP 5.3.1, the ISAPI mode is no longer supported, so why is PHP officially still releasing the NTS and TS two versions under Windows?

No man-made? This is the rhythm of the sinking!

An ISAPI server extension is a DLL that can be loaded and invoked by an HTTP server. Internet Server Extensions are also known as Internet server applications
(ISA), which enhances the functionality of servers that conform to the Internet server API (ISAPI). Isa
Called by a browser application and provides similar functionality to a Common Gateway Interface (CGI) application.

The difference between the two versions of PHP5 Non-thread-safe and Thread-safe

Starting with the PHP5.2.10 version (now with PHP5.2.10 and 5.3 two versions), None-thread safe with Thread
What is the difference between the two versions of safe and what are the differences between the two versions, and how should they be chosen as users? The following friends will tell you.
First of all, the literal meaning of none-thread safe is non-threaded security, do not carry out thread (thread) security during execution; thread
Safe is thread-safe, and thread security checks are performed to prevent new requirements from exhausting system resources as the CGI execution of new threads starts.

Let's look at two ways of executing PHP: ISAPI and fastcgi. FastCGI execution is performed with a single thread, so there is no need for thread security checks, but the protection of thread security can improve execution efficiency, so if
PHP FastCGI (either with IIS 6 or IIS 7) is recommended to download, execute non-thread safe php (PHP
Two files are packaged in two ways: MSI, zip, download zip
Kit). Thread safety checks are prepared for the ISAPI way of PHP, because there are many PHP modules that are not thread-safe, so you need to use the thread safe PHP.

According to these two paragraphs of the interpretation of the words, do not need TS version of the.
But there must be a place to need TS version, or simply divided into the ISAPI version and FASTCGI version, rather than TS and NTS.

Apache's mod_php is multithreaded, and some command-line PHP applications require multi-threading support.

PHP on Linux also has the NTS and TS version of the difference, the default is the NTS version, configure, plus--enable-maintainer-zts is compiled to the TS version. When do I need TS version? For example, if you want to use pthreads this multi-threaded pecl extension, or PHP to mod_php embedded in the multi-threaded operation of Apache, such as Apache on Linux provided by the event MPM is a multi-process multithreaded work model, The Winnt MPM used by Apache on Windows is also a multithreaded model, which requires a TS version of PHP.

If you run PHP with PHP-FPM (such as with Nginx or Apache mod_fastcgi) or php-cgi (such as with Apache mod_fcgid or IIS on Win), you generally do not need the TS Thread-safe version of PHP.

  • Related Article

    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.