Fixed building ffi on PHP 7.4

This commit is contained in:
cytopia
2022-01-23 18:12:24 +01:00
parent 7a2710ffc5
commit 8d8c92657a
2 changed files with 7 additions and 20 deletions

View File

@@ -183,17 +183,8 @@ RUN set -eux \
# -------------------- Installing PHP Extension: ffi --------------------
RUN set -eux \
# Installation: Generic
# Type: GIT extension
&& git clone https://github.com/dstogov/php-ffi /tmp/ffi \
&& cd /tmp/ffi \
# Custom: Install command
&& phpize \
&& ./configure --with-ffi \
&& make -j$(getconf _NPROCESSORS_ONLN) \
&& make install \
\
# Enabling
&& docker-php-ext-enable ffi \
# Type: Built-in extension
&& docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) ffi \
&& true

View File

@@ -254,16 +254,12 @@ extensions_available:
ffi:
already_avail: [8.0, 8.1]
disabled: [5.2, 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3]
all:
type: git
git_url: https://github.com/dstogov/php-ffi
command: |
phpize \
&& ./configure --with-ffi \
&& make -j$(getconf _NPROCESSORS_ONLN) \
&& make install \
build_dep: [libffi-dev]
7.4:
run_dep: [libffi6]
all:
type: builtin
build_dep: [libffi-dev]
run_dep: [libffi7]
fileinfo:
already_avail: [5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1]
5.2: