File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ if [ -n "$PECL_EXTENSION" ]; then
35
35
apt-get install -y --no-install-recommends build-essential php-pear php${PHP_VERSION} -dev pkg-config
36
36
curl https://github.com/FriendsOfPHP/pickle/releases/latest/download/pickle.phar -L -o /usr/local/bin/pickle
37
37
chmod +x /usr/local/bin/pickle
38
- which pickle
39
- php -v
40
- php /usr/local/bin/pickle -v
41
- pickle -v
42
38
fi
43
39
44
- pickle install $PECL_EXTENSION
40
+ if [ -n " $USE_PECL " ]; then
41
+ pecl install $PECL_EXTENSION
42
+ else
43
+ pickle install $PECL_EXTENSION
44
+ fi
45
45
echo " extension=${PHP_EXT_NAME:- ${PECL_EXTENSION} } .so" > /etc/php/${PHP_VERSION} /mods-available/${PHP_EXT_NAME:- ${PECL_EXTENSION} } .ini
46
46
# Adding this in the list of Ubuntu extensions because we use that list as a base for the modules list.
47
47
# TODO: question: cannot we use /etc/php/mods-available instead???
Original file line number Diff line number Diff line change 3
3
set -e
4
4
# Comments: MCrypt is deprecated and usage is generally discouraged. Provided here for legacy apps only.
5
5
6
+ export USE_PECL=1
6
7
export PECL_EXTENSION=mcrypt-1.0.1
7
8
export PHP_EXT_NAME=mcrypt # name of the extension (to put in PHP_EXTENSIONS variable)
8
9
export DEV_DEPENDENCIES=" libmcrypt-dev"
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ export PACKAGE_NAME=mysql
6
6
7
7
../docker-install.sh
8
8
9
- # Exception for this package that enables both mysql nd and mysqli
9
+ # Exception for this package that enables both mysqlnd and mysqli and pdo_mysql
10
10
phpdismod mysqli
11
11
phpdismod pdo_mysql
You can’t perform that action at this time.
0 commit comments