Skip to content

Commit 8b34fef

Browse files
committed
Ensure ext-random is enabled
1 parent 345e0fc commit 8b34fef

File tree

6 files changed

+6
-10
lines changed

6 files changed

+6
-10
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ jobs:
152152
with:
153153
timeout_minutes: 120
154154
retry_wait_seconds: 30
155-
max_attempts: 5
155+
max_attempts: 13
156156
command: (echo "${{ needs.supported-arch-matrix.outputs.arch }}" | jq -r '.[]') | xargs -I % ./build-php.sh $(echo "${{ matrix.image }}" | tr '-' ' ') %
157157
- run: cat ./docker-image/image.tags | xargs -I % docker inspect --format='%={{.Id}}:{{index .Config.Env 7}}' %
158158
- run: docker save "${DOCKER_IMAGE}" | gzip -9 > ./docker-image/image.tar

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-nts-debian

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ RUN EXTENSION_DIR=`php-config --extension-dir 2>/dev/null` && \
7171
wget \
7272
gdb \
7373
$PHPIZE_DEPS \
74-
&& docker-php-ext-install -j$(nproc) pcntl pgsql pdo pdo_pgsql bcmath zip gmp iconv intl sockets \
75-
&& (docker-php-ext-install -j$(nproc) random || true) \
74+
&& docker-php-ext-install -j$(nproc) pcntl pgsql pdo pdo_pgsql bcmath zip gmp iconv intl sockets random \
7675
&& (pecl install eio || pecl install eio-beta) \
7776
&& docker-php-ext-enable eio \
7877
&& 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) \

Dockerfile-zts-debian

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ RUN EXTENSION_DIR=`php-config --extension-dir 2>/dev/null` && \
7272
wget \
7373
gdb \
7474
$PHPIZE_DEPS \
75-
&& docker-php-ext-install -j$(nproc) pcntl pgsql pdo pdo_pgsql bcmath zip gmp iconv intl sockets \
76-
&& (docker-php-ext-install -j$(nproc) random || true) \
75+
&& docker-php-ext-install -j$(nproc) pcntl pgsql pdo pdo_pgsql bcmath zip gmp iconv intl sockets random \
7776
&& pecl install parallel || pecl install parallel-1.1.4 \
7877
&& docker-php-ext-enable parallel \
7978
&& (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)