feat(fix swoole extension) | PHP 5.6
https://github.com/swoole/swoole-src/issues/2379#issuecomment-466613684
This commit is contained in:
parent
b6666363eb
commit
e1d2d81099
|
@ -304,7 +304,7 @@ RUN set -eux; \
|
||||||
if [ ${INSTALL_SWOOLE} = true ]; then \
|
if [ ${INSTALL_SWOOLE} = true ]; then \
|
||||||
# Install Php Swoole Extension
|
# Install Php Swoole Extension
|
||||||
if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "50600" ]; then \
|
if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "50600" ]; then \
|
||||||
pecl install swoole-2.0.11; \
|
pecl install swoole-2.0.10; \
|
||||||
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70000" ]; then \
|
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70000" ]; then \
|
||||||
pecl install swoole-4.3.5; \
|
pecl install swoole-4.3.5; \
|
||||||
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70100" ]; then \
|
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70100" ]; then \
|
||||||
|
|
|
@ -590,7 +590,7 @@ ARG INSTALL_SWOOLE=false
|
||||||
RUN if [ ${INSTALL_SWOOLE} = true ]; then \
|
RUN if [ ${INSTALL_SWOOLE} = true ]; then \
|
||||||
# Install Php Swoole Extension
|
# Install Php Swoole Extension
|
||||||
if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "50600" ]; then \
|
if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "50600" ]; then \
|
||||||
pecl install swoole-2.0.11; \
|
pecl install swoole-2.0.10; \
|
||||||
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70000" ]; then \
|
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70000" ]; then \
|
||||||
pecl install swoole-4.3.5; \
|
pecl install swoole-4.3.5; \
|
||||||
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70100" ]; then \
|
elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "70100" ]; then \
|
||||||
|
|
Loading…
Reference in New Issue