From 1c34248022aa66c701958f8c6e7c194f28e81295 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 1 Oct 2016 13:03:15 +0200 Subject: [PATCH] Check that PHP_ZTS is defined --- src/Composer/Repository/PlatformRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Repository/PlatformRepository.php b/src/Composer/Repository/PlatformRepository.php index 1e8249af3..f663b7591 100644 --- a/src/Composer/Repository/PlatformRepository.php +++ b/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);