PHP5 differences between NTS and TS versions

Source: Internet
Author: User

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

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.

PHP5 differences between NTS and TS versions

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.