RuntimeException: Failed to execute regex: PREG_JIT_STACKLIMIT_ERROR
- Updated On 12 Jan 2021
- 1 Minute To Read
[RuntimeException] Failed to execute regex: PREG_JIT_STACKLIMIT_ERROR
This error is received when using composer (
composer require) to add additional modules.
The error is thrown if the backtracking/recursion limit is not high enough.
Either increase the limits to your requirements or switch off PCRE's just-in-time compilation in your php.ini:
You can also switch off PCRE just in time compilation using your
image: tag: ... php: ini: 'pcre.jit': 0