From 796d55607212bfd37bb67beb4c0283d4819c4c6a Mon Sep 17 00:00:00 2001 From: "Konstantin A. Lepikhov" Date: Thu, 27 Feb 2020 20:59:35 +0100 Subject: [PATCH] snuffleupagus: enable .rules This module uses very strict defaults which block almost everything. --- install-php-extensions | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install-php-extensions b/install-php-extensions index eb0486a..e35b559 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -1012,6 +1012,13 @@ installModuleFromSource() { make -j$(nproc) install cd - >/dev/null docker-php-ext-enable "$1" + case "$1" in + snuffleupagus) # otherwise php -m will be empty + printf '%s\n%s\n' 'extension=snuffleupagus.so' \ + 'sp.configuration_file=/usr/local/etc/php/conf.d/snuffleupagus.rules' \ + > /usr/local/etc/php/conf.d/docker-php-ext-snuffleupagus.ini + ;; + esac } # Install a PECL PHP module given its handle