1
0
Fork 0

Fix open_basedir support regession in bfea0f7d1

pull/9996/head
Jordi Boggiano 2021-07-12 14:34:18 +02:00
parent 5152eeebdc
commit bacbd15b6b
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; return self::$isWindowsSubsystemForLinux = false;
} }
if (is_readable('/proc/version') && false !== stripos(file_get_contents('/proc/version'), 'microsoft')) { if (!ini_get('open_basedir') && is_readable('/proc/version') && false !== stripos(file_get_contents('/proc/version'), 'microsoft')) {
return self::$isWindowsSubsystemForLinux = true; return self::$isWindowsSubsystemForLinux = true;
} }
} }