mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
Disable xdebug and pcov when blackfire extension is installed
This commit is contained in:
parent
bac56c8d91
commit
eea39ea741
@ -22,6 +22,8 @@ Function Add-Blackfire() {
|
|||||||
} else {
|
} else {
|
||||||
$nts = if (!$installed.ThreadSafe) { "_nts" } else { "" }
|
$nts = if (!$installed.ThreadSafe) { "_nts" } else { "" }
|
||||||
Get-File -Url "https://packages.blackfire.io/binaries/blackfire-php/${extension_version}/blackfire-php-windows_${arch}-php-${no_dot_version}${nts}.dll" -OutFile $ext_dir\blackfire.dll > $null 2>&1
|
Get-File -Url "https://packages.blackfire.io/binaries/blackfire-php/${extension_version}/blackfire-php-windows_${arch}-php-${no_dot_version}${nts}.dll" -OutFile $ext_dir\blackfire.dll > $null 2>&1
|
||||||
|
Disable-Extension xdebug > $null 2>&1
|
||||||
|
Disable-Extension pcov > $null 2>&1
|
||||||
Enable-PhpExtension -Extension blackfire -Path $php_dir
|
Enable-PhpExtension -Extension blackfire -Path $php_dir
|
||||||
$status="Installed and enabled"
|
$status="Installed and enabled"
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,8 @@ add_blackfire() {
|
|||||||
fi
|
fi
|
||||||
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
|
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
|
||||||
fi
|
fi
|
||||||
|
disable_extension xdebug >/dev/null 2>&1
|
||||||
|
disable_extension pcov >/dev/null 2>&1
|
||||||
enable_extension blackfire extension
|
enable_extension blackfire extension
|
||||||
add_extension_log blackfire "$status"
|
add_extension_log blackfire "$status"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user