From eea39ea7416629b6f5faed5dea1f43a2b8b7cf44 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 27 Nov 2023 16:39:18 +0530 Subject: [PATCH] Disable xdebug and pcov when blackfire extension is installed --- src/scripts/extensions/blackfire.ps1 | 2 ++ src/scripts/extensions/blackfire.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/scripts/extensions/blackfire.ps1 b/src/scripts/extensions/blackfire.ps1 index 780138098..4afe8ed11 100644 --- a/src/scripts/extensions/blackfire.ps1 +++ b/src/scripts/extensions/blackfire.ps1 @@ -22,6 +22,8 @@ Function Add-Blackfire() { } 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 + Disable-Extension xdebug > $null 2>&1 + Disable-Extension pcov > $null 2>&1 Enable-PhpExtension -Extension blackfire -Path $php_dir $status="Installed and enabled" } diff --git a/src/scripts/extensions/blackfire.sh b/src/scripts/extensions/blackfire.sh index fa37e952f..bea20f248 100644 --- a/src/scripts/extensions/blackfire.sh +++ b/src/scripts/extensions/blackfire.sh @@ -17,6 +17,8 @@ add_blackfire() { 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 fi + disable_extension xdebug >/dev/null 2>&1 + disable_extension pcov >/dev/null 2>&1 enable_extension blackfire extension add_extension_log blackfire "$status" }