Skip to content

Commit 31b9b65

Browse files
committed
Merge branch 'PHP-7.4'
2 parents 9a734c5 + 7c6985d commit 31b9b65

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ext/standard/tests/http/bug76342.phpt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ allow_url_fopen=1
88
<?php
99
require 'server.inc';
1010

11+
$timeout = 0.5;
1112
$options = [
1213
'http' => [
13-
'timeout' => '0.1',
14+
'timeout' => $timeout,
1415
],
1516
];
1617

@@ -20,8 +21,9 @@ $pid = http_server_sleep('tcp://127.0.0.1:12342');
2021

2122
$start = microtime(true);
2223
file_get_contents('http://127.0.0.1:12342/', false, $ctx);
23-
if (microtime(true) - $start >= 0.2) {
24-
echo 'FAIL';
24+
$diff = microtime(true) - $start;
25+
if ($diff >= 2 * $timeout) {
26+
echo "FAIL: $diff\n";
2527
}
2628

2729
http_server_kill($pid);

0 commit comments

Comments
 (0)