Merge branch 'PHP-8.3'

* PHP-8.3:
  Fix file test race condition
This commit is contained in:
Ilija Tovilo 2023-11-16 15:40:48 +01:00
commit 4a06c1d18b
No known key found for this signature in database
GPG key ID: A4F5D403F118200A

View file

@ -28,6 +28,11 @@ function stat_fn( $filename ) {
echo "*** Testing fileattime(), filemtime(), filectime() & touch() : usage variations ***\n";
echo "\n*** testing touch ***\n";
$dir = __DIR__ . '/005_variation2';
mkdir($dir);
chdir($dir);
$b = touch(false);
$c = touch('');
$d = touch(' ');
@ -47,6 +52,7 @@ stat_fn('|');
var_dump(unlink(' '));
var_dump(unlink('|'));
rmdir($dir);
echo "Done";
?>