Skip to content

Commit aa9d140

Browse files
committed
Merge branch 'PHP-8.4'
2 parents 6962540 + d4eb6a4 commit aa9d140

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

ext/standard/tests/file/bug72666_variation3.phpt

-14
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,17 @@ Bug #72666 (stat cache clearing inconsistent - plain wrapper)
55
$filename = __DIR__ . '/bug72666_variation3.txt';
66

77
file_put_contents($filename, "test");
8-
$fd = fopen($filename, "r");
9-
$atime1 = fileatime($filename);
10-
sleep(1);
11-
var_dump(fread($fd, 4));
12-
$atime2 = fileatime($filename);
138
$mtime1 = filemtime($filename);
14-
fclose($fd);
159
$fd = fopen($filename, "w");
1610
sleep(1);
1711
var_dump(fwrite($fd, "data"));
1812
$mtime2 = filemtime($filename);
19-
if (substr(PHP_OS, 0, 3) == 'WIN') {
20-
// Windows do not hundle atime
21-
var_dump($atime2 == $atime1);
22-
} else {
23-
var_dump($atime2 > $atime1);
24-
}
2513
var_dump($mtime2 > $mtime1);
2614
?>
2715
--CLEAN--
2816
<?php
2917
unlink(__DIR__ . '/bug72666_variation3.txt');
3018
?>
3119
--EXPECT--
32-
string(4) "test"
3320
int(4)
3421
bool(true)
35-
bool(true)

0 commit comments

Comments
 (0)