Skip to content

Commit

Permalink
Fix fetch xdebug for php-8.4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed Dec 28, 2024
1 parent b277185 commit 8b4ed1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $php_ver = '7.4.33' # '8.4.2'
# php xdebug ext
# https://xdebug.org/files/php_xdebug-3.1.6-7.4-vc15-x86_64.dll
# https://xdebug.org/files/php_xdebug-3.4.0-8.4-vs17-x86_64.dll
$xdebug_Ver = '3.1.6'
$xdebug_ver_map = @{'7.4' = '3.1.6' ; '8.4' = '3.4.0'}

# phpmyadmin
# https://files.phpmyadmin.net
Expand Down
3 changes: 2 additions & 1 deletion xweb.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ param(
[switch]$version
)

$xweb_ver = '1.0.0'
$xweb_ver = '1.0.1'

Set-Alias println Write-Host

Expand Down Expand Up @@ -300,6 +300,7 @@ $actions = @{

# xdebug
$xdebug_php_ver = "$($php_ver.Major).$($php_ver.Minor)"
$xdebug_ver = $xdebug_ver_map[$xdebug_php_ver]
$xdebug_file_name = "php_xdebug-$xdebug_ver-$xdebug_php_ver-$php_vs-x86_64.dll"
download_file -url "https://xdebug.org/files/$xdebug_file_name" -out $(Join-Path $download_path $xdebug_file_name)
$xdebug_src = Join-Path $download_path $xdebug_file_name
Expand Down

0 comments on commit 8b4ed1d

Please sign in to comment.