Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion utils/build/docker/php/common/install_ddtrace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,21 @@ fi
EXTRA_ARGS=""
PHP_VERSION=$(php -r "echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;")
if [ "$(printf '%s\n' "7.1" "$PHP_VERSION" | sort -V | head -n1)" = "7.1" ]; then
EXTRA_ARGS="--enable-profiling"
# Only enable profiling if the bundle actually contains a profiling extension.
# When installing from a local package that was built without profiling support,
# passing --enable-profiling causes datadog-setup.php to exit with an error.
PKG_HAS_PROFILING=0
if [ -n "${PKG:-}" ]; then
if tar -tzf "$PKG" 2>/dev/null | grep -q "datadog-profiling"; then
PKG_HAS_PROFILING=1
fi
else
# Downloading from GitHub releases always includes profiling
PKG_HAS_PROFILING=1
fi
if [ "$PKG_HAS_PROFILING" = "1" ]; then
EXTRA_ARGS="--enable-profiling"
fi
fi

INI_FILE=/etc/php/php.ini
Expand Down
2 changes: 1 addition & 1 deletion utils/build/docker/php/parametric/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

FROM datadog/dd-trace-ci:php-8.2_buster
FROM datadog/dd-trace-ci:php-8.2_bookworm-6
RUN switch-php nts
WORKDIR /binaries
ENV DD_TRACE_CLI_ENABLED=1
Expand Down
Loading