1
0
Fork 0
mirror of https://github.com/mlocati/docker-php-extension-installer synced 2025-05-09 08:32:42 +00:00

Fix installing blackfire with thread-safe PHP (#1004)

This commit is contained in:
Michele Locati 2024-11-11 14:34:09 +01:00 committed by GitHub
parent 091f76086f
commit 5c38dda75d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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