forked from ScoopInstaller/Versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
php74-xdebug.json
52 lines (52 loc) · 2.17 KB
/
php74-xdebug.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"version": "3.1.5-7.4",
"description": "A popular general-purpose scripting language that is especially suited to web development. (version 7.4)",
"homepage": "https://xdebug.org/",
"license": {
"identifier": "Xdebug-1.01",
"url": "https://xdebug.org/license.php"
},
"architecture": {
"64bit": {
"url": "https://xdebug.org/files/php_xdebug-3.1.5-7.4-vc15-x86_64.dll#/php_xdebug.dll",
"hash": "da85cff0f2bea6054fc3a4bd53ca8899e77a2732d352de55b8b7ce86a109b3bc"
},
"32bit": {
"url": "https://xdebug.org/files/php_xdebug-3.1.5-7.4-vc15.dll#/php_xdebug.dll",
"hash": "696cf904b6acafa4d6465ce93c703c3db2945c3fe0a7dbbcc025d4a724f1c526"
}
},
"post_install": [
"$phpconfd = \"$persist_dir\\..\\php74\\cli\\conf.d\"",
"$ini = \"zend_extension=$dir\\php_xdebug.dll`n[xdebug]`nxdebug.remote_enable=on`nxdebug.remote_autostart=on`nxdebug.remote_connect_back=on\"",
"if(!(test-path $phpconfd\\xdebug.ini)) {",
" Write-Output \"Enabling extension $(Convert-Path $phpconfd)\\xdebug.ini\"",
" Add-Content -Value $ini -Path \"$phpconfd\\xdebug.ini\"",
"} else {",
" Write-Host -f Yellow \"PHP 7.4 was not installed through scoop, you have to activate php_xdebug.dll manually! Add the following:`n\"",
" Write-Host -f Cyan \"$ini`n`n\"",
"}"
],
"notes": [
"Xdebug is already enabled if PHP 7.4 was installed through scoop!",
"Otherwise add '$dir\\php_xdebug.dll' to your php.ini"
],
"checkver": {
"url": "https://xdebug.org/download/historical",
"regex": "php_xdebug-([\\d.]+-7.4)-vc15-x86_64.dll"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://xdebug.org/files/php_xdebug-$version-vc15-x86_64.dll#/php_xdebug.dll"
},
"32bit": {
"url": "https://xdebug.org/files/php_xdebug-$version-vc15.dll#/php_xdebug.dll"
}
},
"hash": {
"url": "https://xdebug.org/download/historical",
"regex": "([a-fA-F0-9]{64}).+?$basename"
}
}
}