【2019年1月現在】PHP7.3でcomposerが使えなくなるバグの対策


2019年1月10日現在、PHP7.3をbrewでinstallしたMac機で、
composerコマンドを叩くと以下のエラーが出る事象がある。

PHP Fatal error: Uncaught ErrorException: preg_match_all(): JIT compilation failed: no more memory 

こちら、どうやらPHP7.3のバグらしい。
現在の回避策として、pcre.jit=0をpip.iniに付け加えればひとまずOKっぽい。

詳細参考:https://nnahito.com/articles/19