mirror of
https://github.com/ScoopInstaller/Versions.git
synced 2026-08-02 20:40:26 +08:00
69 lines
2.7 KiB
JSON
69 lines
2.7 KiB
JSON
{
|
|
"version": "2.5.5-5.5",
|
|
"description": "An extension for PHP 5.5 to assist with debugging and development.",
|
|
"homepage": "https://xdebug.org/",
|
|
"license": {
|
|
"identifier": "Xdebug-1.01",
|
|
"url": "https://xdebug.org/license.php"
|
|
},
|
|
"notes": [
|
|
"Xdebug is already enabled if PHP 5.5 was installed through scoop!",
|
|
"Otherwise add '$dir\\php_xdebug.dll' to your php.ini"
|
|
],
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://xdebug.org/files/php_xdebug-2.5.5-5.5-vc11-x86_64.dll#/php_xdebug.dll",
|
|
"hash": "44874c2360dd63591d75da6f08213c1d71f5578cabff7935cd015c364f47d2ab"
|
|
},
|
|
"32bit": {
|
|
"url": "https://xdebug.org/files/php_xdebug-2.5.5-5.5-vc11.dll#/php_xdebug.dll",
|
|
"hash": "1f8bb426d7a151b37bf3d42ff7163ff64f9a7a9537205c1d18d70e6d22750999"
|
|
}
|
|
},
|
|
"post_install": [
|
|
"$config = @(",
|
|
" \"zend_extension=$dir\\php_xdebug.dll\",",
|
|
" \"[xdebug]\",",
|
|
" \"xdebug.remote_enable=on\",",
|
|
" \"xdebug.remote_autostart=on\",",
|
|
" \"xdebug.remote_connect_back=on\"",
|
|
") -join \"`n\"",
|
|
"$php = $app -Split '-' | Select-Object -First 1",
|
|
"$configUpdated = $false",
|
|
"foreach ($phpGlobal in @($false, $true)) {",
|
|
" if (installed $php $phpGlobal) {",
|
|
" $configPath = \"$(persistdir $php $phpGlobal)\\cli\\conf.d\\xdebug.ini\"",
|
|
" if(-not (Test-Path -Path $configPath)) {",
|
|
" $configUpdated = $true",
|
|
" ensure (Split-Path $configPath -Parent) | Out-Null",
|
|
" Write-Host \"Enabling extension $configPath\"",
|
|
" Add-Content -Value $config -Path $configPath",
|
|
" }",
|
|
" break",
|
|
" }",
|
|
"}",
|
|
"if(-not $configUpdated) {",
|
|
" Write-Host -ForegroundColor Yellow \"You may need to manually enable php_xdebug.dll. Add the following:`n\"",
|
|
" Write-Host -ForegroundColor Cyan \"$config`n`n\"",
|
|
"}"
|
|
],
|
|
"checkver": {
|
|
"url": "https://xdebug.org/download/historical",
|
|
"regex": "php_xdebug-([\\d.]+-5.5)-vc11-x86_64.dll"
|
|
},
|
|
"autoupdate": {
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://xdebug.org/files/php_xdebug-$version-vc11-x86_64.dll#/php_xdebug.dll"
|
|
},
|
|
"32bit": {
|
|
"url": "https://xdebug.org/files/php_xdebug-$version-vc11.dll#/php_xdebug.dll"
|
|
}
|
|
},
|
|
"hash": {
|
|
"url": "https://xdebug.org/download/historical",
|
|
"regex": "([a-fA-F0-9]{64}).+?$basename"
|
|
}
|
|
}
|
|
}
|