diff --git a/bucket/php83-xdebug.json b/bucket/php83-xdebug.json new file mode 100644 index 00000000000..117f3e60eb0 --- /dev/null +++ b/bucket/php83-xdebug.json @@ -0,0 +1,45 @@ +{ + "version": "3.3.2-8.3", + "description": "A popular general-purpose scripting language that is especially suited to web development. (version 8.3)", + "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.3.2-8.3-vs16-x86_64.dll#/php_xdebug.dll", + "hash": "f3b91a98ab768f934e5bc8bb011372988417291a46d9ad4036c253619b5f0695" + } + }, + "post_install": [ + "$phpconfd = \"$persist_dir\\..\\php83\\cli\\conf.d\"", + "$ini = \"zend_extension=$dir\\php_xdebug.dll`n[xdebug]`nxdebug.mode=develop,debug`nxdebug.client_port=9003`nxdebug.start_with_request=trigger # If you always want to use debug, set the value to 'yes'\"", + "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 8.3 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 8.3 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.]+-8.3)-vs16-x86_64.dll" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://xdebug.org/files/php_xdebug-$version-vs16-x86_64.dll#/php_xdebug.dll" + } + }, + "hash": { + "url": "https://xdebug.org/download/historical", + "regex": "([a-fA-F0-9]{64}).+?$basename" + } + } +}