From a38d946ba73dc84a0111c64a5025772813369a28 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Mon, 29 Jul 2024 12:52:10 +0200 Subject: [PATCH] Fix installing datadog_trace on Alpine 3.11 and 3.12 (#945) --- install-php-extensions | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install-php-extensions b/install-php-extensions index b700e51..909f122 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -2895,6 +2895,16 @@ installRemoteModule() { if test $PHP_MAJMIN_VERSION -lt 700; then installRemoteModule_version=0.75.0 fi + if test -z "$installRemoteModule_version"; then + case "$DISTRO" in + alpine) + if test $DISTRO_MAJMIN_VERSION -le 312; then + # cc is not supported due to a memcmp related bug + installRemoteModule_version=1.1.0 + fi + ;; + esac + fi else installRemoteModule_version="$(resolvePeclStabilityVersion "$installRemoteModule_module" "$installRemoteModule_version")" fi