ID: 37354 Comment by: judas dot iscariote at gmail dot com Reported By: jbricci at gmail dot com Status: Open Bug Type: Unknown/Other Function Operating System: Windows 2003 ISAPI PHP Version: 5.1.4 New Comment:
works perfectly fine in linux.. this may be a Windows only issue .. Previous Comments: ------------------------------------------------------------------------ [2006-05-08 00:09:38] jbricci at gmail dot com Description: ------------ sleep() does not work as it did before... sleep() now only seems to work up to a certain number of seconds, I haven't figured what that number is. But if this now how sleep() will work in PHP, could you please add the maximum value, (number of seconds allowed to be used in sleep()) to the manual. Reproduce code: --------------- <? // some ridiculous amount of time.. sleep ( 63166608000 ); ?> Expected result: ---------------- script should sleep... Actual result: -------------- script continues without sleeping, and triggers a warning, that makes no sense at all. PHP Warning: sleep() [<a href='function.sleep'>function.sleep</a>]: Number of seconds must be greater than or equal to 0 in x:\www\docs\run\load.php on line 4 PHP 5.1.3 and in older versions, sleep() would sleep, no matter how many seconds were used! snaps.php.net (5.2.dev-latest, 6.0-dev-latest) also seem to follow version 5.1.3 and older version, sleeping no matter how many seconds are used in sleep()! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37354&edit=1