Skip to content

Commit 57e649d

Browse files
committed
Ensure ext-random is enabled
1 parent a0f9d3a commit 57e649d

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Dockerfile-nts-alpine

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ RUN EXTENSION_DIR=`php-config --extension-dir 2>/dev/null` && \
7373
$PHPIZE_DEPS \
7474
## Install PECL
7575
&& wget -q pear.php.net/go-pear.phar && php go-pear.phar \
76-
&& install-php-extensions pcntl pgsql pdo pdo_pgsql bcmath zip gmp iconv opcache intl sockets \
77-
&& (install-php-extensions random || true) \
76+
&& install-php-extensions pcntl pgsql pdo pdo_pgsql bcmath zip gmp iconv opcache intl sockets random \
7877
&& (pecl install eio || pecl install eio-beta) \
7978
&& docker-php-ext-enable eio \
8079
&& pecl install event \

Dockerfile-zts-alpine

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ RUN EXTENSION_DIR=`php-config --extension-dir 2>/dev/null` && \
7777
$PHPIZE_DEPS \
7878
## Install PECL
7979
&& wget -q pear.php.net/go-pear.phar && php go-pear.phar \
80-
&& install-php-extensions pcntl pgsql pdo pdo_pgsql bcmath zip gmp iconv opcache intl sockets \
81-
&& (install-php-extensions random || true) \
80+
&& install-php-extensions pcntl pgsql pdo pdo_pgsql bcmath zip gmp iconv opcache intl sockets random \
8281
&& pecl install parallel || pecl install parallel-1.1.4 \
8382
&& docker-php-ext-enable parallel \
8483
&& (pecl install eio || pecl install eio-beta) \

test/container/test_php_ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ def test_zip_is_loaded(host):
8181
def test_zip_is_loaded(host):
8282
output = host.run('php -r "exit(function_exists(\'mt_rand\') ? 0 : 255);"')
8383
assert output.rc == 0
84-
# assert 'random' in host.run('php -m').stdout
84+
assert 'random' in host.run('php -m').stdout

0 commit comments

Comments
 (0)