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