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
3535 apt-get install -y --no-install-recommends build-essential php-pear php${PHP_VERSION} -dev pkg-config
3636 curl https://github.com/FriendsOfPHP/pickle/releases/latest/download/pickle.phar -L -o /usr/local/bin/pickle
3737 chmod +x /usr/local/bin/pickle
38- which pickle
39- php -v
40- php /usr/local/bin/pickle -v
41- pickle -v
4238 fi
4339
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
4545 echo " extension=${PHP_EXT_NAME:- ${PECL_EXTENSION} } .so" > /etc/php/${PHP_VERSION} /mods-available/${PHP_EXT_NAME:- ${PECL_EXTENSION} } .ini
4646 # Adding this in the list of Ubuntu extensions because we use that list as a base for the modules list.
4747 # TODO: question: cannot we use /etc/php/mods-available instead???
Original file line number Diff line number Diff line change 33set -e
44# Comments: MCrypt is deprecated and usage is generally discouraged. Provided here for legacy apps only.
55
6+ export USE_PECL=1
67export PECL_EXTENSION=mcrypt-1.0.1
78export PHP_EXT_NAME=mcrypt # name of the extension (to put in PHP_EXTENSIONS variable)
89export DEV_DEPENDENCIES=" libmcrypt-dev"
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ export PACKAGE_NAME=mysql
66
77../docker-install.sh
88
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
1010phpdismod mysqli
1111phpdismod pdo_mysql
You can’t perform that action at this time.
0 commit comments