From 22f5ad47d2ee65bab9361565bf7760154104cdcc Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Wed, 27 Nov 2019 20:36:58 +0530 Subject: [PATCH] Handle exception in Update-PhpCAInfo in win32.ps1 --- src/scripts/win32.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index 13bd9cca..1d3a2155 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -50,7 +50,10 @@ try { Update-PhpCAInfo -Path $php_dir -Source CurrentUser } catch { - Update-PhpCAInfo -Path $php_dir -Source Curl + try { + Update-PhpCAInfo -Path $php_dir -Source Curl + } catch { + } } if ([Version]$installed.Version -ge '7.4') { Copy-Item "$dir\..\src\ext\php_pcov.dll" -Destination "$($installed.ExtensionsPath)\php_pcov.dll"