From a26c03eef04e8381c6252aa059cd38a55c915545 Mon Sep 17 00:00:00 2001 From: David Zuelke Date: Fri, 30 Sep 2016 23:09:48 +0200 Subject: [PATCH] add php-zts virtual platform package --- src/Composer/Repository/PlatformRepository.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Composer/Repository/PlatformRepository.php b/src/Composer/Repository/PlatformRepository.php index 42b864773..dba8343ff 100644 --- a/src/Composer/Repository/PlatformRepository.php +++ b/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');