Re: what's the official position on apache threaded environments
| From: | Alice Wonder | Date: | Thu, 22 Mar 2018 05:52:51 +0000 |
| Subject: | Re: what's the official position on apache threaded environments | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101993@lists.php.net to get a copy of this message | ||
On 03/21/2018 09:15 PM, Helmut K. C. Tessarek wrote:
On 2018-03-21 21:59, j adams wrote:I've been using zts w/ latest apache in threaded and have not found the issues, but I've heard Remi mention them and he generally knows all things truth from fiction when it comes to php. Is there a list somewhere of what the specific issues with using zts in multi-threaded apache are? What modules have known issues? I haven't found it.So what's the story with PHP and multithreaded environments these days?Unfortunately PHP was never and will most likely never be threadsafe as a module. (Yes, I know that there's the ZTS code, but hey, are you really serious about this?) I never understood why the core devs never switched to a threaded model, but I believe they never deemed it truly necessary. The ZTS threaded module has a few interesting approaches but fails in some other areas. To be honest, I suggest to use the fpm-cgi SAPI module with an Apache threaded environment.