Skip to content

Instantly share code, notes, and snippets.

@loorlab
Last active February 15, 2021 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loorlab/94c7811d50981831aa940cd4750ca8d1 to your computer and use it in GitHub Desktop.
Save loorlab/94c7811d50981831aa940cd4750ca8d1 to your computer and use it in GitHub Desktop.
WordPress 5.x + PHP 7.3 - 7.4 : preg_match_all(): JIT compilation failed: no more memory via https://bugs.php.net/bug.php?id=77260 + https://twitter.com/themarcusbattle/status/1072929621790855174

PHP 7.3

Fix: If you're running #Composer @MacHomebrew and get this error "JIT compilation failed: no more memory" you need to:

  1. Create/edit /usr/local/etc/php/7.3/php.ini
  2. Disable PHP PCRE JIT compilation by changing ;pcre.jit=1 to pcre.jit=0

PHP 7.4

pcre.jit = 0
max_execution_time 3000
memory_limit 350M
post_max_size 64M
upload_max_filesize 512M
max_input_time 60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment