File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,11 @@ install:
7171 # ==================================================
7272 - echo Setting PHP version...
7373 # ==================================================
74- - ps : Start-FileDownload 'http://windows.php.net/downloads/releases/sha1sum.txt'
75- - ps : $env:PHP_VERSION=type sha1sum.txt | where { $_ -match "php-(${env:PHP_TARGET}\.\d+)-src" } | foreach { $matches[1] }
74+ - ps : appveyor DownloadFile 'http://windows.php.net/downloads/releases/sha1sum.txt'
75+ - ps : |
76+ $versions = type sha1sum.txt | where { $_ -match "php-(${env:PHP_TARGET}\.\d+)-src" } | foreach { $matches[1] }
77+ $version = $versions.Split(' ')[-1]
78+ $env:PHP_VERSION=${version}
7679 - ps : $env:PHP_PLATFORM="${env:PHP_SDK}\phpdev\vc${env:PHP_VC}\${env:PLATFORM}"
7780 - ps : $env:PHP_SRC="${env:PHP_PLATFORM}\php-${env:PHP_VERSION}-src"
7881 - ps : >-
You can’t perform that action at this time.
0 commit comments