Re: non-thread-safe yet pthreads-friendly build of PHP?

From: Date: Wed, 28 Mar 2001 00:03:49 +0000
Subject: Re: non-thread-safe yet pthreads-friendly build of PHP?
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-50107@lists.php.net to get a copy of this message
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 module (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 request. Later I discovered just compiling the webserver with -lthread and -lpthread solved all problems. 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. -Jason ----- Original Message ----- From: "Zeev Suraski" <zeev@zend.com> To: "Rasmus Lerdorf" <rasmus@php.net> Cc: <php-dev@lists.php.net> Sent: Tuesday, March 27, 2001 4:32 PM Subject: Re: [PHP-DEV] non-thread-safe yet pthreads-friendly build of PHP? > Ok, thanks! > > Zeev > > 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. > > > >-Rasmus > > -- > Zeev Suraski <zeev@zend.com> > CTO & co-founder, Zend Technologies Ltd. > http://www.zend.com/ > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#50107) next »