Re: set_time_limit has no effect
| From: | Laruence | Date: | Tue, 11 Oct 2011 08:03:02 +0000 |
| Subject: | Re: set_time_limit has no effect | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-55776@lists.php.net to get a copy of this message | ||
Hi;
sorry for noise, I think I found out why. ignore me.
thanks
2011/10/11 Laruence <laruence@php.net>:
> 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/
>
--
Laruence Xinchen Hui
http://www.laruence.com/