1
0
Fork 0

Make sure /proc/version read does not fail the process ever, closes #10080

pull/10086/head
Jordi Boggiano 2021-08-29 13:10:22 +02:00
parent 0158436fb4
commit b8e461ea61
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ class Platform
return self::$isWindowsSubsystemForLinux = false;
}
if (!ini_get('open_basedir') && is_readable('/proc/version') && false !== stripos(file_get_contents('/proc/version'), 'microsoft')) {
if (!ini_get('open_basedir') && is_readable('/proc/version') && false !== stripos(Silencer::call('file_get_contents', '/proc/version'), 'microsoft')) {
return self::$isWindowsSubsystemForLinux = true;
}
}