Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/buildx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
run: |
USE_VERSION=$PHP_VERSION
if [ "$PHP_VERSION" == "8.6" ]; then
USE_VERSION="8.6.0alpha1"
USE_VERSION="8.6.0alpha2"
fi
echo "name=$USE_VERSION" >> "$GITHUB_OUTPUT"
- name: Build and push Docker image
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
if: matrix.php-version == '8.6'
run: docker build -t php-base --build-arg PHP_VERSION=$PHP_VERSION .
env:
PHP_VERSION: '8.6.0alpha1'
PHP_VERSION: '8.6.0alpha2'

- name: Pull main image for size comparison
id: pull_main
Expand Down
78 changes: 39 additions & 39 deletions php-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,23 +99,23 @@ esac

case $PHP_VERSION in
8.5*)
php -m | grep -q '^igbinary$' || \
(git clone --depth=1 https://github.com/igbinary/igbinary.git /usr/src/igbinary; \
cd /usr/src/igbinary; \
phpize && ./configure && make -j"$(nproc)" && make install; \
echo "extension=igbinary.so" > /usr/local/etc/php/conf.d/igbinary.ini; \
cd -; \
rm -rf /usr/src/igbinary)
php -m | grep -q '^igbinary$' || (
git clone --depth=1 https://github.com/igbinary/igbinary.git /usr/src/igbinary &&
cd /usr/src/igbinary &&
phpize && ./configure && make -j"$(nproc)" && make install &&
echo "extension=igbinary.so" > /usr/local/etc/php/conf.d/igbinary.ini
)
rm -rf /usr/src/igbinary
;;
8.6*)
php -m | grep -q '^igbinary$' || \
(git clone --depth=1 https://github.com/igbinary/igbinary.git /usr/src/igbinary; \
cd /usr/src/igbinary; \
export CFLAGS="${CFLAGS:-} -DXtOffsetOf=offsetof -Dzval_dtor=zval_ptr_dtor_nogc"; \
phpize && ./configure && make -j"$(nproc)" && make install; \
echo "extension=igbinary.so" > /usr/local/etc/php/conf.d/igbinary.ini; \
cd -; \
rm -rf /usr/src/igbinary)
php -m | grep -q '^igbinary$' || (
git clone --depth=1 https://github.com/igbinary/igbinary.git /usr/src/igbinary &&
cd /usr/src/igbinary &&
export CFLAGS="${CFLAGS:-} -DXtOffsetOf=offsetof -Dzval_dtor=zval_ptr_dtor_nogc" &&
phpize && ./configure && make -j"$(nproc)" && make install &&
echo "extension=igbinary.so" > /usr/local/etc/php/conf.d/igbinary.ini
)
rm -rf /usr/src/igbinary
;;
*)
yes | pecl install igbinary
Expand All @@ -124,14 +124,14 @@ esac

case $PHP_VERSION in
8.5*|8.6*)
# Yknow if we really need it.
php -m | grep -q '^mailparse$' || \
(git clone --depth=1 https://github.com/php/pecl-mail-mailparse.git /usr/src/mailparse; \
cd /usr/src/mailparse; \
phpize && ./configure && make -j"$(nproc)" && make install; \
echo "extension=mailparse.so" > /usr/local/etc/php/conf.d/mailparse.ini; \
cd -; \
rm -rf /usr/src/mailparse)
# Yknow if we really need it.
php -m | grep -q '^mailparse$' || (
git clone --depth=1 https://github.com/php/pecl-mail-mailparse.git /usr/src/mailparse &&
cd /usr/src/mailparse &&
phpize && ./configure && make -j"$(nproc)" && make install &&
echo "extension=mailparse.so" > /usr/local/etc/php/conf.d/mailparse.ini
)
rm -rf /usr/src/mailparse
;;
*)
yes | pecl install mailparse
Expand Down Expand Up @@ -220,13 +220,13 @@ esac

case $PHP_VERSION in
8.5*|8.6*)
php -m | grep -q '^redis$' || \
(git clone --depth=1 https://github.com/phpredis/phpredis.git /usr/src/phpredis; \
cd /usr/src/phpredis; \
phpize && ./configure && make -j"$(nproc)" && make install; \
echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini; \
cd -; \
rm -rf /usr/src/phpredis)
php -m | grep -q '^redis$' || (
git clone --depth=1 https://github.com/phpredis/phpredis.git /usr/src/phpredis &&
cd /usr/src/phpredis &&
phpize && ./configure && make -j"$(nproc)" && make install &&
echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini
)
rm -rf /usr/src/phpredis
;;
8.*)
mkdir -p /usr/src/php/ext/redis && curl -fsSL https://pecl.php.net/get/redis | tar xvz -C "/usr/src/php/ext/redis" --strip 1 && docker-php-ext-install redis
Expand Down Expand Up @@ -298,15 +298,15 @@ esac

case $PHP_VERSION in
8.6*)
php -m | grep -q '^imagick$' || \
(git clone --depth=1 https://github.com/Imagick/imagick.git /usr/src/imagick; \
cd /usr/src/imagick; \
export CFLAGS="${CFLAGS:-} -DXtOffsetOf=offsetof"; \
phpize && ./configure && make -j"$(nproc)" && make install; \
echo "extension=imagick.so" > /usr/local/etc/php/conf.d/imagick.ini; \
cd -; \
rm -rf /usr/src/imagick)
;;
php -m | grep -q '^imagick$' || (
git clone --depth=1 https://github.com/Imagick/imagick.git /usr/src/imagick &&
cd /usr/src/imagick &&
export CFLAGS="${CFLAGS:-} -DXtOffsetOf=offsetof" &&
phpize && ./configure && make -j"$(nproc)" && make install &&
echo "extension=imagick.so" > /usr/local/etc/php/conf.d/imagick.ini
)
rm -rf /usr/src/imagick
;;
*)
yes | pecl install imagick
;;
Expand Down
Loading