#37354 [Opn->Bgs]: sleep() does not work as expected
| From: | iliaa@php.net | Date: | Mon, 08 May 2006 13:19:49 +0000 |
| Subject: | #37354 [Opn->Bgs]: sleep() does not work as expected | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-96813@lists.php.net to get a copy of this message | ||
ID: 37354
Updated by: iliaa@php.net
Reported By: jbricci at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Windows 2003 ISAPI
PHP Version: 5.1.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
PHP numbers sizes are limited by the bitsize of your system.
For example when you create a number in excess of 2.14 billion
it overflows the integer causing it to go into the negative
teritory, hence the error message.
Previous Comments:
------------------------------------------------------------------------
[2006-05-08 08:24:33] judas dot iscariote at gmail dot com
works perfectly fine in linux.. this may be a Windows only issue ..
------------------------------------------------------------------------
[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