Browse Source

add php-debug virtual platform package

David Zuelke 8 years ago
parent
commit
0f68c01094
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/Composer/Repository/PlatformRepository.php

+ 6 - 0
src/Composer/Repository/PlatformRepository.php

@@ -81,6 +81,12 @@ class PlatformRepository extends ArrayRepository
         $php->setDescription('The PHP interpreter');
         $this->addPackage($php);
 
+        if (PHP_DEBUG) {
+            $phpdebug = new CompletePackage('php-debug', $version, $prettyVersion);
+            $phpdebug->setDescription('The PHP interpreter, with debugging symbols');
+            $this->addPackage($phpdebug);
+        }
+
         if (PHP_INT_SIZE === 8) {
             $php64 = new CompletePackage('php-64bit', $version, $prettyVersion);
             $php64->setDescription('The PHP interpreter, 64bit');