File tree Expand file tree Collapse file tree 8 files changed +27
-9
lines changed Expand file tree Collapse file tree 8 files changed +27
-9
lines changed Original file line number Diff line number Diff line change 1+ ../core/pcov
Original file line number Diff line number Diff line change 1313
1414if [ -n " $EXTENSION " ]; then
1515 set +e
16- if apt-cache search --names-only " php${PHP_VERSION} -$EXTENSION " | grep " php${PHP_VERSION} -$EXTENSION " ; then
16+ PACKAGE_NAME=${PACKAGE_NAME:- $EXTENSION }
17+ if apt-cache search --names-only " php${PHP_VERSION} -$PACKAGE_NAME " | grep " php${PHP_VERSION} -$PACKAGE_NAME " ; then
1718 set -e
18- apt-get install -y --no-install-recommends php${PHP_VERSION} -$EXTENSION
19+ apt-get install -y --no-install-recommends php${PHP_VERSION} -$PACKAGE_NAME
1920 else
2021 set -e
21- apt-get install -y --no-install-recommends php-$EXTENSION
22+ apt-get install -y --no-install-recommends php-$PACKAGE_NAME
2223 fi
2324
2425fi
@@ -27,14 +28,20 @@ if [ -n "$PECL_EXTENSION" ]; then
2728 # if env ready?
2829
2930 # is phpize installed?
30- if which pecl && which phpize; then
31- echo " pecl found"
32- which pecl
31+ if which pickle && which phpize; then
32+ echo " pickle found"
33+ which pickle
3334 else
3435 apt-get install -y --no-install-recommends build-essential php-pear php${PHP_VERSION} -dev pkg-config
36+ curl https://github.com/FriendsOfPHP/pickle/releases/latest/download/pickle.phar -L -o /usr/local/bin/pickle
37+ chmod +x /usr/local/bin/pickle
3538 fi
3639
37- pecl install $PECL_EXTENSION
40+ if [ -n " $USE_PECL " ]; then
41+ pecl install $PECL_EXTENSION
42+ else
43+ pickle install $PECL_EXTENSION
44+ fi
3845 echo " extension=${PHP_EXT_NAME:- ${PECL_EXTENSION} } .so" > /etc/php/${PHP_VERSION} /mods-available/${PHP_EXT_NAME:- ${PECL_EXTENSION} } .ini
3946 # Adding this in the list of Ubuntu extensions because we use that list as a base for the modules list.
4047 # TODO: question: cannot we use /etc/php/mods-available instead???
Original file line number Diff line number Diff line change @@ -23,3 +23,4 @@ apt-get purge -y php-pear build-essential php${PHP_VERSION}-dev pkg-config
2323apt-get autoremove -y
2424apt-get clean
2525rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
26+ rm -f /usr/local/bin/pickle
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 11#! /usr/bin/env bash
22
33set -e
4- export EXTENSION=mysql
4+ export EXTENSION=mysqlnd
5+ export PACKAGE_NAME=mysql
56
67../docker-install.sh
8+
9+ # Exception for this package that enables both mysqlnd and mysqli and pdo_mysql
10+ phpdismod mysqli
11+ phpdismod pdo_mysql
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33set -e
4- export EXTENSION =pcov
4+ export PECL_EXTENSION =pcov
55
66../docker-install.sh
Original file line number Diff line number Diff line change 33set -e
44export DEV_DEPENDENCIES=" zlib1g-dev"
55export DEPENDENCIES=" zlib1g"
6+ export USE_PECL=1
67PECL_EXTENSION=swoole ../docker-install.sh
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ sudo chown docker:docker /opt/php_env_var_cache.php
55REGENERATE=$( /usr/bin/real_php /usr/local/bin/check_php_env_var_changes.php)
66
77if [[ " $REGENERATE " != " 0" ]] && [[ " $REGENERATE " != " 1" ]]; then
8+ >&2 echo " Unexpected PHP proxy output:"
9+ >&2 echo $REGENERATE
810 exit 1
911fi
1012
You can’t perform that action at this time.
0 commit comments