We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26e5140 commit 68e7353Copy full SHA for 68e7353
1 file changed
php/BuildPhp/private/Get-PhpSrc.ps1
@@ -38,8 +38,13 @@ function Get-PhpSrc {
38
Get-File -Url $url -Outfile $zipFile
39
[System.IO.Compression.ZipFile]::ExtractToDirectory($zipFilePath, $currentDirectory)
40
Rename-Item -Path "php-src-$ref" -NewName $directory
41
+
42
+ if ($PhpVersion -match '^7\.2\.\d+$') {
43
+ Set-Content -Path (Join-Path $directoryPath 'win32/build/mkdist.php') -Value ((Get-Content -Raw -Path (Join-Path $directoryPath 'win32/build/mkdist.php')).Replace('$hdr_data{$i}', '$hdr_data[$i]')) -NoNewline
44
+ }
45
46
[System.IO.Compression.ZipFile]::CreateFromDirectory($directoryPath, $srcZipFilePath)
47
}
48
end {
49
-}
50
+}
0 commit comments