FAQ
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/

Search Discussions

  • Laruence at Oct 11, 2011 at 7:59 am
    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 at Oct 11, 2011 at 8:03 am
    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/

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-internals @
categoriesphp
postedOct 11, '11 at 7:36a
activeOct 11, '11 at 8:03a
posts3
users1
websitephp.net

1 user in discussion

Laruence: 3 posts

People

Translate

site design / logo © 2022 Grokbase