On Sat, 28 Jun 2003, Matt Parlane wrote:
> > Nope.  Until someone sits down and goes through every 3rd-party library
> > that can be linked into PHP on every platform and identifies whether or
> > not they are threadsafe and under which conditions they remain threadsafe,
> > using PHP in a threaded web server on UNIX is going to remain
> > experimental.
>
>  From that, can I assume that using PHP by itself with no external
> libraries is stable with Apache 2?

It might be.  We don't know and since none of us (that I know of at least)
would dream of running that combination in our own production environments
we won't know for a while.  Until there is some compelling feature above
and beyond what can be done in the tried and true Apache-1.3.x code, I
don't see this situation changing.

> Is there a short list of some common extensions that do work reliably
> with Apache 2?  (eg MySQL, GD etc...)

Nope.  Make one.  It's not all that easy to create such a list.  Just take
a single library and go through it and tell me if it is threadsafe.  Can
you do that?  Do you know what to look for?  If it is threadsafe on one
platform, do you think it is threadsafe on another?  Does it depend on
which version of libc is on a platform?  Does it depend on how it was
compiled?

We could of course mutex every call to every external function.  Then we
could be reasonably sure it would work, and at the same time we could be
sure that it was much slower than running it non-threaded.

-Rasmus

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to