From 7a9446dc36d3a0cdd239f505566e10d235524e27 Mon Sep 17 00:00:00 2001 From: suabahasa Date: Fri, 24 Nov 2023 10:13:23 +0700 Subject: [PATCH] php: Add version 8.3 --- bucket/php83.json | 61 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 bucket/php83.json diff --git a/bucket/php83.json b/bucket/php83.json new file mode 100644 index 00000000000..c9daa63458c --- /dev/null +++ b/bucket/php83.json @@ -0,0 +1,61 @@ +{ + "version": "8.3.0", + "description": "PHP, a popular general-purpose scripting language that is especially suited to web development. (version 8.3)", + "homepage": "https://windows.php.net/", + "license": "PHP-3.01", + "suggest": { + "vcredist": "extras/vcredist2022" + }, + "architecture": { + "64bit": { + "url": "https://windows.php.net/downloads/releases/php-8.3.0-Win32-vs16-x64.zip", + "hash": "f606eb650a002a89a95c41b431cf2b4c6778797037f5691f92f79f2fa3a5abfb" + }, + "32bit": { + "url": "https://windows.php.net/downloads/releases/php-8.3.0-Win32-vs16-x86.zip", + "hash": "b2b8dfbf53d0df834923b78f378c07808c63a265858ee027160715ed8b3d9a37" + } + }, + "pre_install": [ + "# Create directory for custom PHP configuration", + "if (!(Test-Path \"$dir\\cli\\conf.d\")) {", + " (New-Item -Type directory \"$dir\\cli\\conf.d\") | Out-Null", + "}" + ], + "post_install": [ + "# Enable extensions to be found in installation-relative folder (the default is to search C:/php)", + "(Get-Content \"$dir\\cli\\php.ini\") | % { $_ -replace ';\\s?(extension_dir = \"ext\")', '$1' } | Set-Content \"$dir\\cli\\php.ini\"" + ], + "bin": [ + "php.exe", + "php-cgi.exe", + "phpdbg.exe" + ], + "env_set": { + "PHP_INI_SCAN_DIR": "$dir\\cli;$dir\\cli\\conf.d;" + }, + "persist": [ + "cli", + [ + "php.ini-production", + "cli\\php.ini" + ] + ], + "checkver": { + "url": "https://windows.php.net/download/", + "regex": "

.*?\\(([\\d.]+)\\)

" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://windows.php.net/downloads/releases/php-$version-Win32-vs16-x64.zip" + }, + "32bit": { + "url": "https://windows.php.net/downloads/releases/php-$version-Win32-vs16-x86.zip" + } + }, + "hash": { + "url": "$baseurl/sha256sum.txt" + } + } +}