Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31332 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39806 invoked by uid 1010); 31 Jul 2007 03:29:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 39791 invoked from network); 31 Jul 2007 03:29:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jul 2007 03:29:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain l-i-e.com from 67.139.134.202 cause and error) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:4030] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7A/80-32151-3BCAEA64 for ; Mon, 30 Jul 2007 23:29:57 -0400 Received: (qmail 84963 invoked by uid 98); 31 Jul 2007 03:29:59 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.01 (clamdscan: 0.88.7/3819. Clear:RC:1(127.0.0.1):. Processed in 0.067231 secs); 31 Jul 2007 03:29:59 -0000 Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 31 Jul 2007 03:29:58 -0000 Received: from 24.12.13.192 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Mon, 30 Jul 2007 22:29:58 -0500 (CDT) Message-ID: <2219.24.12.13.192.1185852598.squirrel@www.l-i-e.com> In-Reply-To: <46ADBC9E.4040402@officinedigitali.it> References: <46ADBC9E.4040402@officinedigitali.it> Date: Mon, 30 Jul 2007 22:29:58 -0500 (CDT) To: "Nico Sabbi" Cc: internals@lists.php.net Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] pcntl_alarm() doesn't work with apache_worker (multithreaded) From: ceo@l-i-e.com ("Richard Lynch") 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?