Skip to content
Snippets Groups Projects
Commit 2522a331 authored by Andrey Postnikov's avatar Andrey Postnikov Committed by Andrey Postnikov
Browse files

Issue #3404084: add pcov and fix docker-php-ext-enable

- pcov extension is not enabled by default
- use `docker-php-ext-enable pcov` to enable it


(cherry picked from commit d1d9c933)
parent f21d835c
Branches
No related tags found
No related merge requests found
Pipeline #152764 passed
......@@ -121,8 +121,8 @@ RUN set -xe &&\
make install &&\
cd / && rm -fr "$buildDir"
# install pecl extensions for apcu, xdebug, and yaml
RUN pecl install APCu-5.1.23 yaml-2.2.3 \
# install pecl extensions for apcu, pcov, and yaml
RUN pecl install APCu-5.1.23 pcov-1.0.11 yaml-2.2.3 \
&&\
# stript .debug files out of executables
echo '\
......
......@@ -58,7 +58,7 @@ if [ -z "$modules" ]; then
fi
for module in $modules; do
if nm -g "$module" | grep -q ' zend_extension_entry$'; then
if [ -z "$(php -dzend_extension="$module" -v 2>&1 >/dev/null)" ]; then
# https://wiki.php.net/internals/extensions#loading_zend_extensions
line="zend_extension=$(readlink -f "$module")"
else
......
......@@ -121,8 +121,8 @@ RUN set -xe &&\
make install &&\
cd / && rm -fr "$buildDir"
# install pecl extensions for apcu, xdebug, and yaml
RUN pecl install APCu-5.1.23 yaml-2.2.3 \
# install pecl extensions for apcu, pcov, and yaml
RUN pecl install APCu-5.1.23 pcov-1.0.11 yaml-2.2.3 \
&&\
# stript .debug files out of executables
echo '\
......
......@@ -58,7 +58,7 @@ if [ -z "$modules" ]; then
fi
for module in $modules; do
if nm -g "$module" | grep -q ' zend_extension_entry$'; then
if [ -z "$(php -dzend_extension="$module" -v 2>&1 >/dev/null)" ]; then
# https://wiki.php.net/internals/extensions#loading_zend_extensions
line="zend_extension=$(readlink -f "$module")"
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment