mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-04 15:51:23 +00:00
php: Fix post_install script for enabling extension_dir setting
This commit is contained in:
parent
694ba3f693
commit
f7b880d221
@ -36,7 +36,7 @@
|
||||
],
|
||||
"post_install": [
|
||||
"# Enable extensions to be found in installation-relative folder (the default is to search C:/php)",
|
||||
"(gc \"$dir\\cli\\php.ini\") | % { $_ -replace '; extension_dir = \"ext\"', 'extension_dir = \"ext\"' } | sc \"$dir\\cli\\php.ini\""
|
||||
"(Get-Content \"$dir\\cli\\php.ini\") | % { $_ -replace ';\\s?(extension_dir = \"ext\")', '$1' } | Set-Content \"$dir\\cli\\php.ini\""
|
||||
],
|
||||
"checkver": {
|
||||
"url": "https://windows.php.net/download/",
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
],
|
||||
"post_install": [
|
||||
"# Enable extensions to be found in installation-relative folder (the default is to search C:/php)",
|
||||
"(gc \"$dir\\cli\\php.ini\") | % { $_ -replace '; extension_dir = \"ext\"', 'extension_dir = \"ext\"' } | sc \"$dir\\cli\\php.ini\""
|
||||
"(Get-Content \"$dir\\cli\\php.ini\") | % { $_ -replace ';\\s?(extension_dir = \"ext\")', '$1' } | Set-Content \"$dir\\cli\\php.ini\""
|
||||
],
|
||||
"checkver": {
|
||||
"url": "https://windows.php.net/download/",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user