Use cert bundle generated by Brew's OpenSSL in PHP formula.
This commit is contained in:
parent
1ad3ec66c9
commit
f3c54fb29f
1 changed files with 6 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue