mirror of
https://github.com/ScoopInstaller/Versions.git
synced 2026-09-07 16:07:37 +08:00
40 lines
1.3 KiB
JSON
40 lines
1.3 KiB
JSON
{
|
|
"version": "5.4.45",
|
|
"description": "A popular general-purpose scripting language that is especially suited to web development. (version 5.4)",
|
|
"homepage": "https://www.php.net",
|
|
"license": {
|
|
"identifier": "PHP-3.01",
|
|
"url": "https://secure.php.net/license/"
|
|
},
|
|
"suggest": {
|
|
"vcredist": "extras/vcredist2008"
|
|
},
|
|
"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\""
|
|
],
|
|
"url": "https://downloads.php.net/~windows/releases/archives/php-5.4.45-Win32-VC9-x86.zip",
|
|
"hash": "38cde4bac05e916fb0c0b78a2e5bfeec9b02b4b6fc51c9a02a66e4fc1e1a1d08",
|
|
"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;"
|
|
}
|
|
}
|