Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55775 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92473 invoked from network); 11 Oct 2011 07:59:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Oct 2011 07:59:11 -0000 Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vx0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:62722] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A4/00-26502-E47F39E4 for ; Tue, 11 Oct 2011 03:59:11 -0400 Received: by vcbfk1 with SMTP id fk1so6283346vcb.29 for ; Tue, 11 Oct 2011 00:59:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; bh=fbGRQZSPIO4B8TxWQ3882B/S4QFDHm0SjLMm671+lHY=; b=ThdQYkYzCb84mjIn7ZxVpglhpXY4Slzb4ZI2kL4kJxY6UzEH7IB608ZZRBAZGqADv5 OCxcY64n9KOq762/7UiOSUyMYp0CxRIPnz2ujoo8fBEyu9DKWPQZE+yhFmYx7UfiVxbF 40thUfAMVvH3YTeNcOfDZdkICcMn6A25qMEE4= Received: by 10.220.58.140 with SMTP id g12mr1629481vch.251.1318319947141; Tue, 11 Oct 2011 00:59:07 -0700 (PDT) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.220.45.136 with HTTP; Tue, 11 Oct 2011 00:58:46 -0700 (PDT) In-Reply-To: References: Date: Tue, 11 Oct 2011 15:58:46 +0800 X-Google-Sender-Auth: Z_19hmxAhtFBogopqD1RxKJesss Message-ID: To: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: set_time_limit has no effect From: laruence@php.net (Laruence) Hi: with E_NOTICE open.... and if I run the test script by php /tmp/test.php 2>log, the timeout mechanism works agian... thanks 2011/10/11 Laruence : > Hi: > =C2=A0 =C2=A0 set_time_limit seems has no effect for this example(both CL= I, > apache2handler) : http://pastebin.com/N3TxANhn > set_time_limit(1); > > while(1) { > > =C2=A0 =C2=A0$a =3D $arr['index_miss']; > > =C2=A0 =C2=A0$a =3D $arr['index_miss']; > > =C2=A0 =C2=A0$a =3D $arr['index_miss']; > > =C2=A0 =C2=A0$a =3D $arr['index_miss']; > > > } > > =C2=A0 =C2=A0 but what is wired is , if I reduce the assignment statments= to 1 > in that while block, =C2=A0it seems works well... > > =C2=A0 =C2=A0 like: > =C2=A0 =C2=A0 set_time_limit(1); > > while(1) { > =C2=A0 =C2=A0$a =3D $arr['index_miss']; > } > > > =C2=A0 =C2=A0anyidea? > > thanks > -- > Laruence =C2=A0Xinchen Hui > http://www.laruence.com/ > --=20 Laruence =C2=A0Xinchen Hui http://www.laruence.com/