php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61517 random test failure - ext/standard/tests/misc/time_sleep_until_basic.phpt
Submitted: 2012-03-26 16:55 UTC Modified: 2012-04-03 11:36 UTC
From: mattficken@php.net Assigned: ab (profile)
Status: Closed Package: Testing related
PHP Version: 5.3.10 OS: Windows
Private report: No CVE-ID: None
 [2012-03-26 16:55 UTC] mattficken@php.net
Description:
------------
on windows, time_sleep_until() has millisecond accuracy while microtime() is accurate to 10th of a second. 

this means there can be up to a .9 millisecond difference which will fail this test. 

Expected result:
----------------
pass

Actual result:
--------------
randomly fails

Patches

time_sleep_until_basic.diff (last revision 2012-03-26 16:55 UTC by mattficken)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-02 22:58 UTC] mattficken@php.net
This patch passes on PHP5.3.11rc1 on Windows 7 sp1x64.

It does not break for me on Linux x64 (Gentoo and Fedora 16) with PHP5.3.11rc1.
 [2012-04-03 11:29 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=469cd3abf131853b5c727c7ebffff84754d8383c
Log: Fix bug #61517 random test failure - ext/standard/tests/misc/time_sleep_until_basic.phpt
 [2012-04-03 11:30 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=36449bface319cba5dfa11348e80bf8612f25b15
Log: Fix bug #61517 random test failure - ext/standard/tests/misc/time_sleep_until_basic.phpt
 [2012-04-03 11:36 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2012-04-03 11:36 UTC] ab@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2012-04-03 12:28 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=469cd3abf131853b5c727c7ebffff84754d8383c
Log: Fix bug #61517 random test failure - ext/standard/tests/misc/time_sleep_until_basic.phpt
 [2012-04-18 09:45 UTC] laruence@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=36449bface319cba5dfa11348e80bf8612f25b15
Log: Fix bug #61517 random test failure - ext/standard/tests/misc/time_sleep_until_basic.phpt
 [2012-07-24 23:36 UTC] rasmus@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=36449bface319cba5dfa11348e80bf8612f25b15
Log: Fix bug #61517 random test failure - ext/standard/tests/misc/time_sleep_until_basic.phpt
 [2013-11-17 09:32 UTC] laruence@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=36449bface319cba5dfa11348e80bf8612f25b15
Log: Fix bug #61517 random test failure - ext/standard/tests/misc/time_sleep_until_basic.phpt
 [2014-10-07 23:27 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=469cd3abf131853b5c727c7ebffff84754d8383c
Log: Fix bug #61517 random test failure - ext/standard/tests/misc/time_sleep_until_basic.phpt
 [2014-10-07 23:38 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=469cd3abf131853b5c727c7ebffff84754d8383c
Log: Fix bug #61517 random test failure - ext/standard/tests/misc/time_sleep_until_basic.phpt
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Mar 20 02:01:27 2019 UTC