1. 程式人生 > >PHP Warning: preg_match(): JIT compilation failed: no more memory in

PHP Warning: preg_match(): JIT compilation failed: no more memory in

PHP7.3出現如下錯誤:PHP Warning: preg_match(): JIT compilation failed: no more memory in ...

解決方案:

修改 /usr/local/etc/php/7.3/php.ini:

將
;pcre.jit=1
改為:
pcre.jit=0

儲存,重啟php,問題解決。

ps:據說這是php7.3的一個bug。

 

參考:https://stackoverflow.com/questions/53690624/errors-installing-composer-on-macos-jit-compilation-failed