Php has such an option during compilation and installation -- enable-maintainer-zts: Enablethreadsafety php has such an option during compilation and installation -- enable-maintainer-zts is Enable thread safety-for code maintainers only !!
Abstract understanding thread security is a code maintainer!
So what exactly does it mean?
In addition, to add the thread module pthreads in php5.3, PHP must enable this option during compilation.
Reply content:
Php has such an option during compilation and installation -- enable-maintainer-zts: Enable thread safety-for code maintainers only !!
Abstract understanding thread security is a code maintainer!
So what exactly does it mean?
In addition, to add the thread module pthreads in php5.3, PHP must enable this option during compilation.
Thread Security explanation:
From PHP5.2.10, there are two versions available: None-Thread Safe and Thread Safe. 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 means non-thread security, and no Thread security check is performed during execution. Thread Safe means thread security, the thread security check is performed to prevent the CGI execution method of the new thread from consuming system resources when there are new requirements.
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, 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 (the PHP binary path has two packet encoding methods: msi, zip, please refer to the zip suite ). 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.
Let's talk about your questions. First, this is related to multithreading. If you want to use multithreading (php, such as pthreads), this parameter is required.