mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-8.3'
* PHP-8.3: Fix file test race condition
This commit is contained in:
commit
4a06c1d18b
1 changed files with 6 additions and 0 deletions
|
@ -28,6 +28,11 @@ function stat_fn( $filename ) {
|
||||||
|
|
||||||
echo "*** Testing fileattime(), filemtime(), filectime() & touch() : usage variations ***\n";
|
echo "*** Testing fileattime(), filemtime(), filectime() & touch() : usage variations ***\n";
|
||||||
echo "\n*** testing touch ***\n";
|
echo "\n*** testing touch ***\n";
|
||||||
|
|
||||||
|
$dir = __DIR__ . '/005_variation2';
|
||||||
|
mkdir($dir);
|
||||||
|
chdir($dir);
|
||||||
|
|
||||||
$b = touch(false);
|
$b = touch(false);
|
||||||
$c = touch('');
|
$c = touch('');
|
||||||
$d = touch(' ');
|
$d = touch(' ');
|
||||||
|
@ -47,6 +52,7 @@ stat_fn('|');
|
||||||
|
|
||||||
var_dump(unlink(' '));
|
var_dump(unlink(' '));
|
||||||
var_dump(unlink('|'));
|
var_dump(unlink('|'));
|
||||||
|
rmdir($dir);
|
||||||
|
|
||||||
echo "Done";
|
echo "Done";
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue