From 8764876cad7ed98da9c08ee1b18fa590814608da Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 28 Dec 2016 17:38:45 +0100 Subject: [PATCH] Avoid loading xdebug platform package twice, fixes #5995 --- src/Composer/Repository/PlatformRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Repository/PlatformRepository.php b/src/Composer/Repository/PlatformRepository.php index bb5509752..4db71f59c 100644 --- a/src/Composer/Repository/PlatformRepository.php +++ b/src/Composer/Repository/PlatformRepository.php @@ -122,7 +122,7 @@ class PlatformRepository extends ArrayRepository } // Check for xdebug in a restarted process - if ($prettyVersion = strval(getenv(XdebugHandler::ENV_VERSION))) { + if (!in_array('xdebug', $loadedExtensions, true) && ($prettyVersion = strval(getenv(XdebugHandler::ENV_VERSION)))) { $this->addExtension($versionParser, 'xdebug', $prettyVersion); }