I have ran into this issue many times, with the sudden system call switch between
a threaded and non-threaded mode. In one scenario I had a problem where a 3rd party
(chilisoft) was linked against an so that was linked against libpthread.
I had an issue where signals where not being utilized correctly
(SIGALRM would no longer work after one try) which would break keep-alive in apache.
My first fix was a patch to the source to reset non-blocking on SIGALRM with every
Later I discovered just compiling the webserver with -lthread and -lpthread solved all
I am currently developing an Intermail module, which uses threads as well, and have
had no problems.
(the same applies to the php/java module.)
I definitely think this is something that is not as well known as it should be.
----- Original Message -----
From: "Zeev Suraski" <[EMAIL PROTECTED]>
To: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, March 27, 2001 4:32 PM
Subject: Re: [PHP-DEV] non-thread-safe yet pthreads-friendly build of PHP?
> Ok, thanks!
> At 00:29 28/3/2001, Rasmus Lerdorf wrote:
> > > Is there any way to build PHP with pthreads, with ZTS disabled? The reason
> > > I'm asking is that there are some thread-safe 3rd party libraries which are
> > > linked against pthreads, and apparently, if PHP isn't built with pthreads -
> > > it crashes. Any experience with it?
> >If you link Apache with pthreads that should suffice. Just add -lpthreads
> >to the Apache LIBS line.
> Zeev Suraski <[EMAIL PROTECTED]>
> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]