Skip to content

Commit

Permalink
Fix swoole versions
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Jan 3, 2025
1 parent 8e698e4 commit d7c7760
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ add_swoole() {
pecl_ini_file="$(sudo pecl config-get php_ini)"
if [[ "$PHP_VERSION" =~ 7.[2-4] ]]; then
yes '' 2>/dev/null | sudo pecl install -f -D 'enable-openssl="yes" enable-sockets="yes" enable-swoole-curl="yes"' swoole-4.8.13 && configure_extension swoole
elif [[ "$PHP_VERSION" =~ 8.[0-3] ]]; then
elif [[ "$PHP_VERSION" = "8.0" ]]; then
yes '' 2>/dev/null | sudo pecl install -f -D 'enable-openssl="yes" enable-sockets="yes" enable-swoole-curl="yes"' swoole-5.1.6 && configure_extension swoole
elif [[ "$PHP_VERSION" =~ 8.[1-4] ]]; then
yes '' 2>/dev/null | sudo pecl install -f -D 'enable-openssl="yes" enable-sockets="yes" enable-swoole-curl="yes"' swoole && configure_extension swoole
elif [[ "$PHP_VERSION" =~ 8.[4-5] ]]; then
elif [[ "$PHP_VERSION" = "8.5" ]]; then
git clone https://github.com/swoole/swoole-src
(
cd swoole-src
Expand Down

0 comments on commit d7c7760

Please sign in to comment.