Skip to content

Commit 0776fba

Browse files
committed
Force php-swoole version to 4.8.11 for php7.*
1 parent c9840e8 commit 0776fba

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

extensions/core/swoole/install.sh

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
#!/usr/bin/env bash
22

3+
34
set -e
4-
export DEV_DEPENDENCIES="zlib1g-dev"
5-
export DEPENDENCIES="zlib1g"
6-
export USE_PECL=1
7-
PECL_EXTENSION=swoole ../docker-install.sh
5+
if [[ "${PHP_VERSION}" ~= "^7" ]]; then
6+
## http://pecl.php.net/package/swoole
7+
export DEPENDENCIES="zlib1g"
8+
export DEV_DEPENDENCIES="zlib1g-dev"
9+
export USE_PECL=1
10+
export PECL_EXTENSION=swoole-4.8.11
11+
export PHP_EXT_NAME=swoole
12+
else
13+
export EXTENSION=swoole
14+
fi
15+
16+
../docker-install.sh

0 commit comments

Comments
 (0)