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 13
13
14
14
if [ -n " $EXTENSION " ]; then
15
15
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
17
18
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
19
20
else
20
21
set -e
21
- apt-get install -y --no-install-recommends php-$EXTENSION
22
+ apt-get install -y --no-install-recommends php-$PACKAGE_NAME
22
23
fi
23
24
24
25
fi
@@ -27,14 +28,20 @@ if [ -n "$PECL_EXTENSION" ]; then
27
28
# if env ready?
28
29
29
30
# 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
33
34
else
34
35
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
35
38
fi
36
39
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
38
45
echo " extension=${PHP_EXT_NAME:- ${PECL_EXTENSION} } .so" > /etc/php/${PHP_VERSION} /mods-available/${PHP_EXT_NAME:- ${PECL_EXTENSION} } .ini
39
46
# Adding this in the list of Ubuntu extensions because we use that list as a base for the modules list.
40
47
# 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
23
23
apt-get autoremove -y
24
24
apt-get clean
25
25
rm -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 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 1
1
#! /usr/bin/env bash
2
2
3
3
set -e
4
- export EXTENSION=mysql
4
+ export EXTENSION=mysqlnd
5
+ export PACKAGE_NAME=mysql
5
6
6
7
../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 1
1
#! /usr/bin/env bash
2
2
3
3
set -e
4
- export EXTENSION =pcov
4
+ export PECL_EXTENSION =pcov
5
5
6
6
../docker-install.sh
Original file line number Diff line number Diff line change 3
3
set -e
4
4
export DEV_DEPENDENCIES=" zlib1g-dev"
5
5
export DEPENDENCIES=" zlib1g"
6
+ export USE_PECL=1
6
7
PECL_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
5
5
REGENERATE=$( /usr/bin/real_php /usr/local/bin/check_php_env_var_changes.php)
6
6
7
7
if [[ " $REGENERATE " != " 0" ]] && [[ " $REGENERATE " != " 1" ]]; then
8
+ >&2 echo " Unexpected PHP proxy output:"
9
+ >&2 echo $REGENERATE
8
10
exit 1
9
11
fi
10
12
You can’t perform that action at this time.
0 commit comments