Skip to content

Commit f2df979

Browse files
committed
Fixing mcrypt install
1 parent 5e28f7f commit f2df979

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

extensions/core/docker-install.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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???

extensions/core/mcrypt/install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
set -e
44
# Comments: MCrypt is deprecated and usage is generally discouraged. Provided here for legacy apps only.
55

6+
export USE_PECL=1
67
export PECL_EXTENSION=mcrypt-1.0.1
78
export PHP_EXT_NAME=mcrypt # name of the extension (to put in PHP_EXTENSIONS variable)
89
export DEV_DEPENDENCIES="libmcrypt-dev"

extensions/core/mysqli/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
1010
phpdismod mysqli
1111
phpdismod pdo_mysql

0 commit comments

Comments
 (0)