-
Notifications
You must be signed in to change notification settings - Fork 7.8k
fix: make throws an exception: Allocation of JIT memory failed, PCRE JIT will be disabled #7192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0 in /Users/***/Downloads/php-8.0.7/ext/phar/phar.php:1136
|
@@ -642,6 +642,8 @@ class PharCommand extends CLICommand | |||
$dir = new InvertedRegexIterator($dir, $invregex); | |||
} | |||
|
|||
ini_set('pcre.jit', '0'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is wrong as it will be set globally which is unwanted behaviour.
This warning indicates that you have an incorrectly configured system. You need to fix your system configuration to give PHP the necessary permissions. If this is not possible, you need to disable pcre.jit globally. We cannot accept this in individual scripts, as it's a system-specific issue. |
@nikic This is in the make phase, PHP has not been installed yet, but prompt this, I am MacOS Apple Silicon System |
@onanying I see. There is a known compatibility issue, see zherczeg/sljit#99 and zherczeg/sljit#105. I hope we can backport a fix for this soon. |
FWIW if anyone else is running into this issue and don't particularly need PCRE JIT you can disable it. $ ./configure --without-pcre-jit |
See #9279 for PHP 8.1. |
fix: make throws an exception: Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0 in /Users/***/Downloads/php-8.0.7/ext/phar/phar.php:1136