From bacbd15b6b4e5da53fb825dc3392dd6c9b021837 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 12 Jul 2021 14:34:18 +0200 Subject: [PATCH] Fix open_basedir support regession in bfea0f7d1 --- src/Composer/Util/Platform.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Util/Platform.php b/src/Composer/Util/Platform.php index 75b0b06eb..f13e5b000 100644 --- a/src/Composer/Util/Platform.php +++ b/src/Composer/Util/Platform.php @@ -108,7 +108,7 @@ class Platform 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; } }