File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,17 +8,25 @@ add_blackfire() {
88 status=' Enabled'
99 if ! shared_extension blackfire; then
1010 status=' Installed and enabled'
11+ arch=" $( uname -m) "
12+ arch_name=" amd64"
13+ [[ " $arch " = " aarch64" || " $arch " = " arm64" ]] && arch_name=" arm64"
14+ [ " ${ts:? } " = ' zts' ] && no_dot_version=" ${no_dot_version} -zts"
1115 if [ " $extension_version " = " blackfire" ]; then
1216 if [[ ${version:? } =~ 5.[3-6] ]]; then
1317 extension_version=' 1.50.0'
1418 else
1519 extension_version=$( get -s -n " " https://blackfire.io/api/v1/releases | grep -Eo ' php":"([0-9]+.[0-9]+.[0-9]+)' | cut -d ' "' -f 3)
1620 fi
1721 fi
18- get -q -n " ${ext_dir:? } /blackfire.so" https://packages.blackfire.io/binaries/blackfire-php/" $extension_version " /blackfire-php-" $platform " _amd64-php-" $no_dot_version " .so > /dev/null 2>&1
22+ get -q -n " ${ext_dir:? } /blackfire.so" https://packages.blackfire.io/binaries/blackfire-php/" $extension_version " /blackfire-php-" $platform " _" $arch_name " -php-" $no_dot_version " .so > /dev/null 2>&1
23+ fi
24+ if [ -e " ${ext_dir:? } /blackfire.so" ]; then
25+ disable_extension xdebug > /dev/null 2>&1
26+ disable_extension pcov > /dev/null 2>&1
27+ enable_extension blackfire extension
28+ add_extension_log blackfire " $status "
29+ else
30+ add_extension_log blackfire " Could not install blackfire on PHP ${semver:? } "
1931 fi
20- disable_extension xdebug > /dev/null 2>&1
21- disable_extension pcov > /dev/null 2>&1
22- enable_extension blackfire extension
23- add_extension_log blackfire " $status "
2432}
You can’t perform that action at this time.
0 commit comments