Re: set_time_limit has no effect

From: Date: Tue, 11 Oct 2011 07:58:46 +0000
Subject: Re: set_time_limit has no effect
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-55775@lists.php.net to get a copy of this message
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 <laruence@php.net>: > Hi: >     set_time_limit seems has no effect for this example(both CLI, > apache2handler) : http://pastebin.com/N3TxANhn > <?php > set_time_limit(1); > > while(1) { > >    $a = $arr['index_miss']; > >    $a = $arr['index_miss']; > >    $a = $arr['index_miss']; > >    $a = $arr['index_miss']; > > > } > >     but what is wired is , if I reduce the assignment statments to 1 > in that while block,  it seems works well... > >     like: >    <?php > set_time_limit(1); > > while(1) { >    $a = $arr['index_miss']; > } > > >    anyidea? > > thanks > -- > Laruence  Xinchen Hui > http://www.laruence.com/ > -- Laruence  Xinchen Hui http://www.laruence.com/

« previous php.internals (#55775) next »