#33405 [NEW]: set_time_limit() does not work

From: Date: Mon, 20 Jun 2005 07:53:09 +0000
Subject: #33405 [NEW]: set_time_limit() does not work
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-80678@lists.php.net to get a copy of this message
From: nohn@php.net Operating system: CYGWIN_NT-5.1 PHP version: 4.3.11 PHP Bug Type: Unknown/Other Function Bug description: set_time_limit() does not work Description: ------------ set_time_limit() does not work unter WinXP/Cygwin, Win2k/Cygwin. Verified with 4.3.11, 4.4.0RC1, 5.0.4, 5.1.0b1, 5.1-dev. It works on the same machine under Linux. Reproduce code: --------------- <?php ini_set('display_errors', 0); echo "Start\n"; function boo() { echo "Shutdown\n"; } register_shutdown_function("boo"); /* not necessary, just to show the error sooner */ set_time_limit(1); /* infinite loop to simulate long processing */ for (;;) { } echo "End\n"; ?> Expected result: ---------------- The script terminates after 1 second Actual result: -------------- The script loops until it gets interrupted: $ date; php 005a.php; date Mon Jun 20 09:45:11 2005 Content-type: text/html X-Powered-By: PHP/4.3.11 Start ^C Mon Jun 20 09:48:18 2005 -- Edit bug report at http://bugs.php.net/?id=33405&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33405&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33405&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33405&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33405&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33405&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33405&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33405&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33405&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33405&r=support Expected behavior: http://bugs.php.net/fix.php?id=33405&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33405&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33405&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33405&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33405&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33405&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33405&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33405&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33405&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33405&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33405&r=mysqlcfg

« previous php.bugs (#80678) next »