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

Issue #3404084: add pcov and xdebug

- add binutils "nm" used in docker-php-ext-enable
parent b3a43d56
No related branches found
No related tags found
No related merge requests found
Pipeline #152667 passed
......@@ -122,7 +122,7 @@ RUN set -xe &&\
cd / && rm -fr "$buildDir"
# install pecl extensions for apcu, xdebug, and yaml
RUN pecl install APCu-5.1.23 yaml-2.2.3 \
RUN pecl install APCu-5.1.23 pcov-1.0.11 yaml-2.2.3 xdebug-3.3.2 \
&&\
# stript .debug files out of executables
echo '\
......@@ -176,6 +176,7 @@ RUN set -xe &&\
" &&\
runDeps=" \
apache2 \
binutils \
bzip2 \
curl ca-certificates gnupg2 \
default-mysql-client postgresql-client sudo git sqlite3 \
......
......@@ -58,9 +58,12 @@ if [ -z "$modules" ]; then
fi
for module in $modules; do
if nm -g "$module" | grep -q ' zend_extension_entry$'; then
if nm -g "$module" 2>/dev/null | grep -q ' zend_extension_entry$'; then
# https://wiki.php.net/internals/extensions#loading_zend_extensions
line="zend_extension=$(readlink -f "$module")"
if nm -g "$module".debug 2>/dev/null | grep -q ' zend_extension_entry$'; then
# extension can have .debug files nearby
line="zend_extension=$(readlink -f "$module")"
else
line="extension=$module"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment