Make sure /proc/version read does not fail the process ever, closes #10080
parent
0158436fb4
commit
b8e461ea61
|
@ -108,7 +108,7 @@ class Platform
|
||||||
return self::$isWindowsSubsystemForLinux = false;
|
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;
|
return self::$isWindowsSubsystemForLinux = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue