Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2d10752

Browse files
Jeldrik Geraedtsxabbuh
Jeldrik Geraedts
authored andcommitted
[FrameworkBundle] fixes #54402: Suppress PHP warning when is_readable() tries to access dirs outside of open_basedir restrictions
1 parent 322b40a commit 2d10752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Command/CacheClearCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private function isNfs(string $dir): bool
202202

203203
if (null === $mounts) {
204204
$mounts = [];
205-
if ('/' === \DIRECTORY_SEPARATOR && is_readable('/proc/mounts') && $files = @file('/proc/mounts')) {
205+
if ('/' === \DIRECTORY_SEPARATOR && @is_readable('/proc/mounts') && $files = @file('/proc/mounts')) {
206206
foreach ($files as $mount) {
207207
$mount = \array_slice(explode(' ', $mount), 1, -3);
208208
if (!\in_array(array_pop($mount), ['vboxsf', 'nfs'])) {

0 commit comments

Comments
 (0)