Skip to content

Commit

Permalink
Disable xdebug and pcov when blackfire extension is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Nov 27, 2023
1 parent bac56c8 commit eea39ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scripts/extensions/blackfire.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/extensions/blackfire.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit eea39ea

Please sign in to comment.