Ver Fonte

Check that PHP_ZTS is defined

Jordi Boggiano há 8 anos atrás
pai
commit
1c34248022
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/Composer/Repository/PlatformRepository.php

+ 1 - 1
src/Composer/Repository/PlatformRepository.php

@@ -87,7 +87,7 @@ class PlatformRepository extends ArrayRepository
             $this->addPackage($phpdebug);
         }
 
-        if (PHP_ZTS) {
+        if (defined('PHP_ZTS') && PHP_ZTS) {
             $phpzts = new CompletePackage('php-zts', $version, $prettyVersion);
             $phpzts->setDescription('The PHP interpreter, with Zend Thread Safety');
             $this->addPackage($phpzts);