Use cert bundle generated by Brew's OpenSSL in PHP formula.

This commit is contained in:
Ulrich Thomas Gabor 2019-03-13 18:52:25 +01:00 committed by Izaak Beekman
parent 1ad3ec66c9
commit f3c54fb29f
No known key found for this signature in database
GPG key ID: A93CE70D8021BD0F

View file

@ -170,6 +170,12 @@ class Php < Formula
inreplace "php.ini-development", %r{; ?extension_dir = "\./"},
"extension_dir = \"#{HOMEBREW_PREFIX}/lib/php/pecl/#{orig_ext_dir}\""
# Use OpenSSL cert bundle
inreplace "php.ini-development", /; ?openssl\.cafile=/,
"openssl.cafile = \"#{HOMEBREW_PREFIX}/etc/openssl/cert.pem\""
inreplace "php.ini-development", /; ?openssl\.capath=/,
"openssl.capath = \"#{HOMEBREW_PREFIX}/etc/openssl/certs\""
config_files = {
"php.ini-development" => "php.ini",
"sapi/fpm/php-fpm.conf" => "php-fpm.conf",