mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2026-01-09 17:41:14 +00:00
Ensure FFI is enabled by default for PHP 7.4
This commit is contained in:
@@ -182,6 +182,11 @@ RUN set -x \
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{# Fix php.ini settings for enabled extensions #}
|
||||
&& if [ -f /usr/local/etc/php/conf.d/docker-php-ext-ffi.ini ]; then \
|
||||
echo "ffi.enable = 1" >> /usr/local/etc/php/conf.d/docker-php-ext-ffi.ini; \
|
||||
fi \
|
||||
{# /Fix php.ini settings for enabled extensions #}
|
||||
&& chmod +x "$(php -r 'echo ini_get("extension_dir");')"/* \
|
||||
&& rm -rf /tmp/* \
|
||||
\
|
||||
|
||||
@@ -912,9 +912,7 @@ extensions_available:
|
||||
type: git
|
||||
git_url: https://github.com/dstogov/php-ffi
|
||||
command: |
|
||||
curl -sS -O https://github.com/fpoirotte/php-ffi/commit/734630fe3d2e3efd343d3f3636b58446abd9c941.diff \
|
||||
&& git apply 734630fe3d2e3efd343d3f3636b58446abd9c941.diff \
|
||||
&& phpize \
|
||||
phpize \
|
||||
&& ./configure --with-ffi \
|
||||
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
||||
&& make install \
|
||||
|
||||
Reference in New Issue
Block a user