Re: pcntl_alarm() doesn't work with apache_worker (multithreaded)

From: Date: Tue, 31 Jul 2007 03:29:58 +0000
Subject: Re: pcntl_alarm() doesn't work with apache_worker (multithreaded)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-31332@lists.php.net to get a copy of this message
On Mon, July 30, 2007 5:25 am, Nico Sabbi wrote: > $subject says everything: when php runs under a multithreaded apache > pcntl_alarm() doesn't work: the alarm is never delivered. > > My version of php is 5.2.3, but also all versions I tried of 5.1 work > the same. http://us2.php.net/manual/en/ref.pcntl.php "Process Control should not be enabled within a web server environment and unexpected results may happen if any Process Control functions are used within a web server environment." Don't do that. :-) It *MIGHT* happen to work in a non-multi-threaded web environment, but I wouldn't count on it as it's pretty clearly documented not to. YMMV -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.internals (#31332) next »