mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
openssl php extension fix (#2444)
Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
This commit is contained in:
@@ -11,7 +11,7 @@ Choco-Install -PackageName php -ArgumentList "--force", "--params", "/InstallDir
|
|||||||
Choco-Install -PackageName composer -ArgumentList "--ia", "/DEV=$installDir /PHP=$installDir"
|
Choco-Install -PackageName composer -ArgumentList "--ia", "/DEV=$installDir /PHP=$installDir"
|
||||||
|
|
||||||
# update path to extensions and enable curl and mbstring extensions, and enable php openssl extensions.
|
# update path to extensions and enable curl and mbstring extensions, and enable php openssl extensions.
|
||||||
((Get-Content -path $installDir\php.ini -Raw) -replace ';extension=curl','extension=curl' -replace ';extension=mbstring','extension=mbstring' -replace ';extension_dir = "ext"','extension_dir = "ext"' -replace 'extension=";php_openssl.dll"','extension_dir = "php_openssl.dll"') | Set-Content -Path $installDir\php.ini
|
((Get-Content -path $installDir\php.ini -Raw) -replace ';extension=curl','extension=curl' -replace ';extension=mbstring','extension=mbstring' -replace ';extension_dir = "ext"','extension_dir = "ext"' -replace ';extension=openssl','extension=openssl') | Set-Content -Path $installDir\php.ini
|
||||||
|
|
||||||
# Set the PHPROOT environment variable.
|
# Set the PHPROOT environment variable.
|
||||||
setx PHPROOT $installDir /M
|
setx PHPROOT $installDir /M
|
||||||
|
|||||||
Reference in New Issue
Block a user