ID: 26449 Updated by: [EMAIL PROTECTED] Reported By: marcus at quintic dot co dot uk -Status: Open +Status: Feedback Bug Type: Unknown/Other Function Operating System: Windows XP PHP Version: 4.3.4 New Comment:
Try making the delay longer, usleep(100000); will sleep for 1/10 of a second and is very hard to notice. Previous Comments: ------------------------------------------------------------------------ [2003-11-28 10:54:52] marcus at quintic dot co dot uk Description: ------------ (I know the manual says it doesnt work, but it should work because the Sleep function in windows works fine) usleep doesnt work on windows XP (on all windows platforms?). For some reason usleep returns immediately on windows and there doesnt seem to be any way in php of delaying for less than a second without chewing cpu cycles. Having looked at the code behind the usleep function all it does is call the win32 Sleep function which does work, so there must be a bug stopping this from being called. Reproduce code: --------------- <?php usleep(100000); ?> Expected result: ---------------- Should delay for 100000 microseconds. Actual result: -------------- Returns immediately with no delay. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26449&edit=1