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:
71
71
# ==================================================
72
72
- echo Setting PHP version...
73
73
# ==================================================
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}
76
79
- ps : $env:PHP_PLATFORM="${env:PHP_SDK}\phpdev\vc${env:PHP_VC}\${env:PLATFORM}"
77
80
- ps : $env:PHP_SRC="${env:PHP_PLATFORM}\php-${env:PHP_VERSION}-src"
78
81
- ps : >-
You can’t perform that action at this time.
0 commit comments