Add "--enable-embed" to Debian-based CLI variants

This is used for things like NGINX Unit to embed PHP (similar to `mod_php` in Apache, but a more general interface).
This commit is contained in:
Tianon Gravi 2020-12-14 15:34:39 -08:00
parent 4908ef2763
commit 73ccb45f47
5 changed files with 16 additions and 0 deletions

View File

@ -48,6 +48,9 @@ RUN set -eux; \
chown www-data:www-data /var/www/html; \
chmod 777 /var/www/html
# https://github.com/docker-library/php/pull/939#issuecomment-730501748
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed
# Apply stack smash protection to functions using local buffers and alloca()
# Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64)
# Enable optimization (-O2)

View File

@ -48,6 +48,9 @@ RUN set -eux; \
chown www-data:www-data /var/www/html; \
chmod 777 /var/www/html
# https://github.com/docker-library/php/pull/939#issuecomment-730501748
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed
# Apply stack smash protection to functions using local buffers and alloca()
# Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64)
# Enable optimization (-O2)

View File

@ -48,6 +48,9 @@ RUN set -eux; \
chown www-data:www-data /var/www/html; \
chmod 777 /var/www/html
# https://github.com/docker-library/php/pull/939#issuecomment-730501748
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed
# Apply stack smash protection to functions using local buffers and alloca()
# Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64)
# Enable optimization (-O2)

View File

@ -48,6 +48,9 @@ RUN set -eux; \
chown www-data:www-data /var/www/html; \
chmod 777 /var/www/html
# https://github.com/docker-library/php/pull/939#issuecomment-730501748
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed
# Apply stack smash protection to functions using local buffers and alloca()
# Make PHP's main executable position-independent (improves ASLR security mechanism, and has no performance impact on x86_64)
# Enable optimization (-O2)

View File

@ -0,0 +1,4 @@
{{ if env.suite | startswith("alpine") | not then ( -}}
# https://github.com/docker-library/php/pull/939#issuecomment-730501748
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-embed
{{ ) else "" end -}}