mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-09-09 06:14:10 +07:00
Add support to remove all shared extensions
This commit is contained in:
@ -307,6 +307,12 @@ Function Disable-Extension() {
|
||||
}
|
||||
}
|
||||
|
||||
# Function to disable shared extensions.
|
||||
Function Disable-AllShared() {
|
||||
(Get-Content $php_dir\php.ini) | Where-Object {$_ -notmatch '^(zend_)?extension\s*='} | Set-Content $php_dir\php.ini
|
||||
Add-Log $tick "none" "Disabled all shared extensions"
|
||||
}
|
||||
|
||||
# Function to configure composer.
|
||||
Function Edit-ComposerConfig() {
|
||||
Param(
|
||||
|
Reference in New Issue
Block a user