From c88eeedf6b1227eb78e2c4449915d0653f896243 Mon Sep 17 00:00:00 2001 From: Teko012 <112829523+Teko012@users.noreply.github.com> Date: Sat, 23 May 2026 14:12:54 +0200 Subject: [PATCH] Allow installing a specific blackfire version --- install-php-extensions | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install-php-extensions b/install-php-extensions index 1a5dba72..b9fbc937 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -3385,9 +3385,14 @@ installRemoteModule() { ;; esac installRemoteModule_tmp2=$(php -r 'echo PHP_MAJOR_VERSION . PHP_MINOR_VERSION . (ZEND_THREAD_SAFE ? "-zts" : "");') + if test -z "$installRemoteModule_version"; then + installRemoteModule_url="https://blackfire.io/api/v1/releases/probe/php/$installRemoteModule_distro/$installRemoteModule_tmp1/$installRemoteModule_tmp2" + else + installRemoteModule_url="https://packages.blackfire.io/binaries/blackfire-php/$installRemoteModule_version/blackfire-php-${installRemoteModule_distro}_${installRemoteModule_tmp1}-php-${installRemoteModule_tmp2}.tar.gz" + fi installRemoteModule_tmp="$(mktemp -p /tmp/src -d)" cd "$installRemoteModule_tmp" - curl $IPE_CURL_FLAGS -sSLf --user-agent Docker https://blackfire.io/api/v1/releases/probe/php/$installRemoteModule_distro/$installRemoteModule_tmp1/$installRemoteModule_tmp2 | tar xz + curl $IPE_CURL_FLAGS -sSLf --user-agent Docker "$installRemoteModule_url" | tar xz mv blackfire-*.so $(getPHPExtensionsDir)/blackfire.so cd - >/dev/null installRemoteModule_manuallyInstalled=1