php: disable php PCRE JIT compilation

Closes #42790.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
This commit is contained in:
Rui Chen 2019-08-04 19:13:03 -04:00 committed by Chongyu Zhu
parent af1da4f5bf
commit ff4f3c8cfb
No known key found for this signature in database
GPG key ID: 1A43E3C9100B38F5

View file

@ -176,6 +176,11 @@ class Php < Formula
inreplace "php.ini-development", /; ?openssl\.capath=/,
"openssl.capath = \"#{HOMEBREW_PREFIX}/etc/openssl/certs\""
# php 7.3 known bug
# SO discussion: https://stackoverflow.com/a/53709484/791609
# bug report: https://bugs.php.net/bug.php?id=77260
inreplace "php.ini-development", ";pcre.jit=1", "pcre.jit=0"
config_files = {
"php.ini-development" => "php.ini",
"sapi/fpm/php-fpm.conf" => "php-fpm.conf",