mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
This adds more aggressive clearing of stat cache. It is added to the filestat as well as plain wrapper operations which covers stream file accessing as well as exec functions (using pipes). It should hopefully fix the most visible issues with the stat cache. Closes GH-17681
20 lines
334 B
PHP
20 lines
334 B
PHP
--TEST--
|
|
Bug #72666 (stat cache clearing inconsistent - touch)
|
|
--FILE--
|
|
<?php
|
|
$filename = __DIR__ . '/bug72666_variation1.txt';
|
|
|
|
touch($filename);
|
|
var_dump(filemtime($filename) > 2);
|
|
touch($filename, 1);
|
|
var_dump(filemtime($filename));
|
|
|
|
?>
|
|
--CLEAN--
|
|
<?php
|
|
unlink(__DIR__ . '/bug72666_variation1.txt');
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
int(1)
|