#40680 [NEW]: process hangs after reaching set_time_limit() value

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #40680 [NEW]: process hangs after reaching set_time_limit() value

    From: acv dot number dot one at gmail dot com
    Operating system: Linux FC 5
    PHP version: 5.2.1
    PHP Bug Type: Scripting Engine problem
    Bug description: process hangs after reaching set_time_limit() value

    Description:
    ------------
    NOTE: I use php version

    PHP 5.1.4 (cli) (built: May 8 2006 08:41:41)

    but it is not listed there. should I update it? I think it is for all 5.*
    versions.

    Process hangs after reaching set_time_limit() value.

    After the script executes, the php process which processed it hangs and
    the CPU% used remains the same (no resources freeing).

    Reproduce code:
    ---------------
    <?php
    set_time_limit(30);

    while(1)
    {
    a_function();
    } //Call to a function which doesn't affect the "time run" value for the
    script.
    ?>

    Expected result:
    ----------------
    I expect the script to finish executing after 30 seconds + time needed for
    the called (e.g. system call) function.

    Actual result:
    --------------
    The script runs for 30 seconds, but if at the moment the 30 seconds
    interval passes the called funciton is executed (e.g. system call) - the
    process hangs (the interpreter hangs in that funciton)

    --
    Edit bug report at [url]http://bugs.php.net/?id=40680&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40680&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40680&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40680&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40680&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=40680&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=40680&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40680&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=40680&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=40680&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=40680&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=40680&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=40680&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=40680&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40680&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=40680&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=40680&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40680&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=40680&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40680&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40680&r=mysqlcfg[/url]
    acv dot number dot one at gmail dot com Guest

  2. Similar Questions and Discussions

    1. Started Process Hangs
      Whenever I start an application from ASP.NET, the exe hangs, with Task manager showing no cpu time. Every exe I've tried hangs in the same way...
    2. #21926 [NoF->WFx]: Apache process hangs
      ID: 21926 Updated by: sniper@php.net Reported By: arinto at almedina dot net -Status: No Feedback +Status: ...
    3. #21926 [Com]: Apache process hangs
      ID: 21926 Comment by: huberfelix at web dot de Reported By: arinto at almedina dot net Status: No Feedback Bug...
    4. #21926 [Opn->Fbk]: Apache process hangs
      ID: 21926 Updated by: iliaa@php.net Reported By: arinto at almedina dot net -Status: Open +Status: ...
    5. Can't reinstall Photoshop - process hangs
      I've been trying to reinstall photoshop 5.5 . It has been working until now, then just got hung when I tried to launch it. It refused to launch (just...
  3. #2

    Default #40680 [Opn->Bgs]: process hangs after reaching set_time_limit() value

    ID: 40680
    Updated by: [email]tony2001@php.net[/email]
    Reported By: acv dot number dot one at gmail dot com
    -Status: Open
    +Status: Bogus
    Bug Type: Scripting Engine problem
    Operating System: Linux FC 5
    PHP Version: 5.2.1
    New Comment:

    Thank you for taking the time to report a problem with PHP.
    Unfortunately you are not using a current version of PHP --
    the problem might already be fixed. Please download a new
    PHP version from [url]http://www.php.net/downloads.php[/url]

    If you are able to reproduce the bug with one of the latest
    versions of PHP, please change the PHP version on this bug report
    to the version you tested and change the status back to "Open".
    Again, thank you for your continued support of PHP.




    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-01 10:14:02] acv dot number dot one at gmail dot com

    Description:
    ------------
    NOTE: I use php version

    PHP 5.1.4 (cli) (built: May 8 2006 08:41:41)

    but it is not listed there. should I update it? I think it is for all
    5.* versions.

    Process hangs after reaching set_time_limit() value.

    After the script executes, the php process which processed it hangs and
    the CPU% used remains the same (no resources freeing).

    Reproduce code:
    ---------------
    <?php
    set_time_limit(30);

    while(1)
    {
    a_function();
    } //Call to a function which doesn't affect the "time run" value for
    the script.
    ?>

    Expected result:
    ----------------
    I expect the script to finish executing after 30 seconds + time needed
    for the called (e.g. system call) function.

    Actual result:
    --------------
    The script runs for 30 seconds, but if at the moment the 30 seconds
    interval passes the called funciton is executed (e.g. system call) -
    the process hangs (the interpreter hangs in that funciton)


    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40680&edit=1[/url]
    tony2001@php.net Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139