Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lara120618's avatar

Laravel Valet always returns "ErrorException: preg_match(): JIT compilation failed: no more memory"

A fresh install of Mac OS and Laravel valet didn't help get rid of the problem. I dug deeper and edited the php.ini files of both PHP 7.2 and 7.3.

edit made on both files was "pecr.jit=1 to pecr.jit=0" still no luck.

0 likes
6 replies

Please or to participate in this conversation.