Fix blackfire extension version to 1.50.0 for PHP 5.3 to 5.6

This commit is contained in:
Shivam Mathur
2021-04-21 07:25:57 +05:30
parent 7e5351f399
commit 0461bf14b2
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -10,7 +10,11 @@ Function Add-Blackfire() {
$no_dot_version = $version.replace('.', '')
$extension_version = $extension.split('-')[1]
if ($extension_version -notmatch "\S") {
$extension_version = (Invoke-RestMethod https://blackfire.io/api/v1/releases).probe.php
if($version -lt '7.0') {
$extension_version = '1.50.0'
} else {
$extension_version = (Invoke-RestMethod https://blackfire.io/api/v1/releases).probe.php
}
}
if (Test-Path $ext_dir\blackfire.dll) {
Enable-PhpExtension -Extension blackfire -Path $php_dir