mirror of
https://github.com/ScoopInstaller/Versions.git
synced 2026-08-03 11:02:29 +08:00
48 lines
1.6 KiB
JSON
48 lines
1.6 KiB
JSON
{
|
|
"version": "7.2.34",
|
|
"description": "A popular general-purpose scripting language that is especially suited to web development.",
|
|
"homepage": "https://www.php.net",
|
|
"license": {
|
|
"identifier": "PHP-3.01",
|
|
"url": "https://secure.php.net/license/"
|
|
},
|
|
"suggest": {
|
|
"vcredist": "extras/vcredist2022"
|
|
},
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://downloads.php.net/~windows/releases/archives/php-7.2.34-Win32-VC15-x64.zip",
|
|
"hash": "3a3d026aacf8da57ff01ace2f78f8f57494744bfb669f8545cc8f9c4ff0450a5"
|
|
},
|
|
"32bit": {
|
|
"url": "https://downloads.php.net/~windows/releases/archives/php-7.2.34-Win32-VC15-x86.zip",
|
|
"hash": "ae4def064fa2e38b40e3446fcab566fef673719500af626c1078eb4feaf56d84"
|
|
}
|
|
},
|
|
"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"
|
|
],
|
|
"persist": [
|
|
"cli",
|
|
[
|
|
"php.ini-production",
|
|
"cli\\php.ini"
|
|
]
|
|
],
|
|
"env_set": {
|
|
"PHP_INI_SCAN_DIR": "$dir\\cli;$dir\\cli\\conf.d;"
|
|
}
|
|
}
|