File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -5,31 +5,17 @@ Bug #72666 (stat cache clearing inconsistent - plain wrapper)
55$filename = __DIR__ . '/bug72666_variation3.txt';
66
77file_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");
1610sleep(1);
1711var_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- }
2513var_dump($mtime2 > $mtime1);
2614?>
2715--CLEAN--
2816<?php
2917unlink(__DIR__ . '/bug72666_variation3.txt');
3018?>
3119--EXPECT--
32- string(4) "test"
3320int(4)
3421bool(true)
35- bool(true)
You can’t perform that action at this time.
0 commit comments