From ce594cbc39a4866c544f1a970d285ff0548221ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sun, 21 Jan 2024 08:53:09 +0100 Subject: [PATCH] Stop using chocolatey shims (#6269) They have been removed in 2.0.0. See https://docs.chocolatey.org/en-us/guides/upgrading-to-chocolatey-v2-v6#chocolatey-shortcut-shims-removed --- .appveyor.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index e5059c0b649..8d83495ede2 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -47,9 +47,9 @@ install: - ps: | # Check if installation is cached if (!(Test-Path c:\tools\php)) { - appveyor-retry cinst --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y php --version 7.4.27 + appveyor-retry choco install --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y php --version 7.4.27 # install sqlite - appveyor-retry cinst -y sqlite + appveyor-retry choco install -y sqlite Get-ChildItem -Path c:\tools\php cd c:\tools\php @@ -66,7 +66,7 @@ install: Add-Content php.ini "`n extension=php_curl.dll" # Get and install the latest stable sqlsrv DLL's - $DLLVersion = (Invoke-WebRequest "https://pecl.php.net/rest/r/sqlsrv/stable.txt").Content + $DLLVersion = "5.9.0" cd c:\tools\php\ext $source = "https://windows.php.net/downloads/pecl/releases/sqlsrv/$($DLLVersion)/php_sqlsrv-$($DLLVersion)-$($env:php)-nts-vc15-x64.zip" $destination = "c:\tools\php\ext\php_sqlsrv-$($DLLVersion)-$($env:php)-nts-vc15-x64.zip"