RE: [PHP-DEV] ZTS - why are you using it?
| From: | Zeev Suraski | Date: | Wed, 30 Jan 2013 12:42:45 +0000 |
| Subject: | RE: [PHP-DEV] ZTS - why are you using it? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-65498@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Bas van Beek [mailto:bas@tobin.nl]
> Sent: Wednesday, January 30, 2013 2:29 PM
> To: Zeev Suraski
> Cc: Pierre Joye; Stas Malyshev; PHP internals
> Subject: Re: [PHP-DEV] ZTS - why are you using it?
>
> Hi Guys,
>
> As a heavy user of ZTS in multi threaded C/C++ applications, here are my
$0.02.
>
> Removing ZTS would be a bad idea for all those custom multi-threaded
> applications out there that allow some form of internal/embedded PHP
> scripting. These applications are not web-servers but do make use of
threads for
> reasons of their own. Building a FastCGI set-up would be out of the
question if
> these apps are deployed customer / client side and need concurrent PHP
script
> runs.
>
> > Based on the feedback on this thread, I think we should instruct users
> > that using thread-safe versions of PHP is slower, and that actually
> > putting thread-safe PHP inside a multithreaded server is not a very
> > reliable solution. We should recommend FastCGI/fpm instead. We
> > should do that tomorrow morning (figuratively speaking).
In case I wasn't sufficiently clear, I'm talking about putting PHP inside
a *multithreaded web server*, not being a good idea. The use case you
specify is exactly the use case for keeping ZTS support in the code...
Zeev