com php-src: gettimeofday cannot be used to reliably implement high precision process synchronization: ext/standard/tests/misc/time
_sleep_until_basic.phpt

From: Date: Sun, 16 Jun 2019 05:02:28 +0000
Subject: com php-src: gettimeofday cannot be used to reliably implement high precision process synchronization: ext/standard/tests/misc/time
_sleep_until_basic.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106811@lists.php.net to get a copy of this message
Commit: 7e1972796b1706a668643830f3e5aa9960a85a70 Author: Joe Watkins <krakjoe@php.net> Sun, 16 Jun 2019 07:02:28 +0200 Parents: 5a83bfb37db63eeba2323392630c26679bc9bab2 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7e1972796b1706a668643830f3e5aa9960a85a70 Log: gettimeofday cannot be used to reliably implement high precision process synchronization The use of gettimeofday in time_sleep_until is technically incorrect, it's not possible to use gettimeofday in this way reliably on any platform: It relies on operating system global structures, which may be modified by any other process on the system at any time. While in practice, users may be ignoring this flaw, it entirely depends on the other software running on the system to which the application is deployed, there is no possible way to write a test that will always pass on any system, therefore it must be marked XFAIL. Changed paths: M ext/standard/tests/misc/time_sleep_until_basic.phpt Diff: diff --git a/ext/standard/tests/misc/time_sleep_until_basic.phpt b/ext/standard/tests/misc/time_sleep_until_basic.phpt index cac7133..7f35677 100644 --- a/ext/standard/tests/misc/time_sleep_until_basic.phpt +++ b/ext/standard/tests/misc/time_sleep_until_basic.phpt @@ -32,3 +32,5 @@ Michele Orselli mo@ideato.it --EXPECT-- bool(true) bool(true) +--XFAIL-- +gettimeofday cannot be used to reliably implement high precision process synchronization

« previous php.cvs (#106811) next »