From: plc2k at altern dot org Operating system: windows PHP version: 4.3.3 PHP Bug Type: Unknown/Other Function Bug description: Sleep() no more work corectly on 4.3.3
Description: ------------ i used a sleep() function in my php page, and after an upgrade of php, this one no more work. so it work on older version of php like 4.2.0 but not on last one, like 4.3.3 Reproduce code: --------------- <?php echo "test"; $waitfile = "C:\wait.txt"; while (@!unlink($waitfile)) { echo "<B>.</B> "; sleep(2); } ?> Expected result: ---------------- test . . . . . . . . . . (here the "." are add one by one every 2 seconds) Actual result: -------------- test. . . . . . . . . . . . . Fatal error: Maximum execution time of 30 seconds exceeded in c:\uptest2.php on line 8 (here, all the points appear at the timeout) -- Edit bug report at http://bugs.php.net/?id=25867&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25867&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25867&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25867&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25867&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25867&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25867&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25867&r=support Expected behavior: http://bugs.php.net/fix.php?id=25867&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25867&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25867&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25867&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25867&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25867&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25867&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25867&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25867&r=float