File tree 3 files changed +16
-3
lines changed
3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 40
40
#
41
41
# php extensions
42
42
&& docker-php-source extract \
43
- && rm -f /usr/local/lib/php/extensions/no-debug-non-zts-20220829/intl.so /usr/local/etc/php/conf.d/ docker-php-ext-intl.ini \
43
+ && docker-php-ext-remove apcu intl mognodb \
44
44
&& pecl channel-update pecl.php.net \
45
45
&& { php -m | grep gd || docker-php-ext-configure gd --with-freetype --with-jpeg --enable-gd; } \
46
46
&& docker-php-ext-install-if $PHP_EXTENSIONS \
Original file line number Diff line number Diff line change 3
3
set -e
4
4
5
5
extDir=$( php -r ' echo ini_get("extension_dir");' )
6
- iniDir=$PHP_INI_DIR /conf.d/
6
+ iniDir=$PHP_INI_DIR /conf.d
7
7
8
8
usage () {
9
9
echo " usage: $0 [options] module-name [module-name ...]"
@@ -31,6 +31,6 @@ for module; do
31
31
done
32
32
33
33
[[ -n " $modules " ]] \
34
- && rmIni=$( grep -lE " $modules " $PHP_INI_DIR /conf.d /* .ini) \
34
+ && rmIni=$( grep -lE " $modules " $iniDir /* .ini) \
35
35
&& echo " $rmIni " \
36
36
| xargs rm
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -e
4
+
5
+ extDir=$( php -r ' echo ini_get("extension_dir");' )
6
+
7
+ [[ " " = " $@ " ]] && exit 0
8
+
9
+ docker-php-ext-disable $@
10
+
11
+ for module; do
12
+ rm -rf $extDir /$module $extDir /$module .so
13
+ done
You can’t perform that action at this time.
0 commit comments