Open your php.ini file and replace pcre.jit = 1 to pcre.jit = 0 then restart you server.
php artisan migrate return Fatal error: Uncaught ErrorException: preg_match(): JIT compilation failed: no more memory
Hello everyone,
After a upgrade from Mac OS to Catalina, and a downgrade from MAMP Pro to MAMP, I get this error when I try this command :
$ php artisan migrate
I read several discussion about this error and always the answer is : edit your php.ini, and replace pcre.jit = 1 with pcre.jit = 0, to temporaly fix it.
But nothing change to me.
It's strange because it seems I use the good php.ini :
$ php -v PHP 7.3.8 (cli) (built: Aug 14 2019 16:42:46) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.8, Copyright (c) 1998-2018 Zend Technologies
$ which php /Applications/MAMP/bin/php/php7.3.8/bin/php
And in MAMP phpinfo I have :
Loaded Configuration File /Applications/MAMP/bin/php/php7.3.8/conf/php.ini
[...]
PCRE (Perl Compatible Regular Expressions) Support enabled PCRE Library Version 10.32 2018-09-10 PCRE Unicode Version 11.0.0 PCRE JIT Support enabled PCRE JIT Target x86 64bit (little endian + unaligned)
Directive Local Value Master Value pcre.backtrack_limit 1000000 1000000 pcre.jit 0 0 pcre.recursion_limit 100000 100000
Maybe I'm wrong and artisan use a different version of php ?
Thanks
Please or to participate in this conversation.