<?php clearstatcache(bool $clear_realpath_cache = false, string $filename = ""): void
<?php $mkdirError = error_get_last(); } clearstatcache(false, $dirname); if ( ! is_dir($dirname)) { $errorMessage = isset($mkdirError['message']) ? $mkdirError['message'] : '';
<?php public function visibility(string $path): FileAttributes { $location = $this->prefixer->prefixPath($path); clearstatcache(false, $location); error_clear_last(); $fileperms = @fileperms($location);
<?php private function assertFileHasPermissions(string $file, int $expectedPermissions): void { clearstatcache(false, $file); $permissions = fileperms($file) & 0777; $this->assertEquals($expectedPermissions, $permissions); }