From 3bfcdf7eb66106c87576faf0701542e1c817e50a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 30 Dec 2016 12:13:45 +0100 Subject: php-pecl-swoole: disable coroutine with php < 5.5 --- php-pecl-swoole-dev.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/php-pecl-swoole-dev.spec b/php-pecl-swoole-dev.spec index a2d8174..80b01a8 100644 --- a/php-pecl-swoole-dev.spec +++ b/php-pecl-swoole-dev.spec @@ -165,6 +165,11 @@ peclbuild() { --enable-openssl \ --with-openssl \ --enable-sockets \ +%if "%{php_version}" > "5.5" + --enable-coroutine \ +%else + --disable-coroutine \ +%endif %if %{with_nghttpd2} --enable-http2 \ %endif -- cgit