Skip to content

Commit

Permalink
Merge pull request #232 from platformsh/fix-windows-openssl-curl
Browse files Browse the repository at this point in the history
Fix Windows curl and openssl config
  • Loading branch information
akalipetis authored Jan 10, 2025
2 parents b4b4d22 + 58ad85f commit f58a78d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/legacy/php_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,11 @@ func (c *CLIWrapper) PHPPath() string {
}

func (c *CLIWrapper) phpSettings() []string {
return []string{"openssl.cafile", path.Join(c.cacheDir(), "php", "extras", "cacert.pem")}
cacheDir := c.cacheDir()

return []string{
"extension=" + filepath.Join(cacheDir, "php", "ext", "php_curl.dll"),
"extension=" + filepath.Join(cacheDir, "php", "ext", "php_openssl.dll"),
"openssl.cafile=" + filepath.Join(cacheDir, "php", "extras", "cacert.pem"),
}
}

0 comments on commit f58a78d

Please sign in to comment.