Sfoglia il codice sorgente

add php-zts virtual platform package

David Zuelke 8 anni fa
parent
commit
a26c03eef0
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      src/Composer/Repository/PlatformRepository.php

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

@@ -87,6 +87,12 @@ class PlatformRepository extends ArrayRepository
             $this->addPackage($phpdebug);
         }
 
+        if (PHP_ZTS) {
+            $phpzts = new CompletePackage('php-zts', $version, $prettyVersion);
+            $phpzts->setDescription('The PHP interpreter, with Zend Thread Safety');
+            $this->addPackage($phpzts);
+        }
+
         if (PHP_INT_SIZE === 8) {
             $php64 = new CompletePackage('php-64bit', $version, $prettyVersion);
             $php64->setDescription('The PHP interpreter, 64bit');