Skip to content

Commit 2f023ac

Browse files
authored
update Swoole to make it available for PHP 8.3 (#525)
* update Swoole to v5.1.2 and to support PHP 8.3 * make mysqlnd and PostgreSQL operations in PHP coroutine-friendly * remove deprecated configuration option --enable-mysqlnd
1 parent c61bdf4 commit 2f023ac

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

layers/swoole/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ ARG BREF_VERSION
33
FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext
44

55
RUN set -ex && \
6-
LD_LIBRARY_PATH=/lib64:/lib yum install -y libcurl-devel openssl-devel && \
6+
LD_LIBRARY_PATH=/lib64:/lib yum install -y libcurl-devel postgresql-devel openssl-devel && \
77
mkdir ${PHP_BUILD_DIR}/ext/swoole && \
8-
curl -sfL https://github.com/swoole/swoole-src/archive/v5.0.2.tar.gz -o swoole.tar.gz && \
8+
curl -sfL https://github.com/swoole/swoole-src/archive/v5.1.2.tar.gz -o swoole.tar.gz && \
99
tar xfz swoole.tar.gz --strip-components=1 -C ${PHP_BUILD_DIR}/ext/swoole && \
1010
cd ${PHP_BUILD_DIR}/ext/swoole && \
1111
phpize && \
12-
./configure --enable-openssl --enable-sockets --enable-swoole-curl && \
12+
./configure --enable-swoole-pgsql --enable-openssl --enable-sockets --enable-swoole-curl && \
1313
make -j $(nproc) && \
1414
make install && \
1515
cp "$(php-config --extension-dir)/swoole.so" /tmp/swoole.so && \

layers/swoole/config.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"php": [
33
"80",
44
"81",
5-
"82"
5+
"82",
6+
"83"
67
]
78
}

0 commit comments

Comments
 (0)