From 5c38dda75da0702eecf625b94925ef22380dc4bc Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Mon, 11 Nov 2024 14:34:09 +0100 Subject: [PATCH] Fix installing blackfire with thread-safe PHP (#1004) --- install-php-extensions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-php-extensions b/install-php-extensions index b37e30e..2d3f60f 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -2984,7 +2984,7 @@ installRemoteModule() { installRemoteModule_distro=linux ;; esac - installRemoteModule_tmp2=$(php -r 'echo PHP_MAJOR_VERSION . PHP_MINOR_VERSION;') + installRemoteModule_tmp2=$(php -r 'echo PHP_MAJOR_VERSION . PHP_MINOR_VERSION . (ZEND_THREAD_SAFE ? "-zts" : "");') installRemoteModule_tmp="$(mktemp -p /tmp/src -d)" cd "$installRemoteModule_tmp" curl -sSLf --user-agent Docker https://blackfire.io/api/v1/releases/probe/php/$installRemoteModule_distro/$installRemoteModule_tmp1/$installRemoteModule_tmp2 | tar xz