Browse Source

Avoid loading xdebug platform package twice, fixes #5995

Jordi Boggiano 8 years ago
parent
commit
8764876cad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Repository/PlatformRepository.php

+ 1 - 1
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);
         }