소스 검색

Check that PHP_ZTS is defined

Jordi Boggiano 8 년 전
부모
커밋
1c34248022
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);