[GIT-PULLS] [php-src] PR #22853: Disable JIT when pthread protection is unavailable

[email protected] (realFlowControl) Tue, 21 Jul 2026 19:32:49 +0000
Newsgroups php.git-pulls
Message-ID <XpGsP8d1LIOrNTzkXqeuLrjrhDYivRpeyeMyORMKNeo@main.internal.php.net>
Pull Request: https://github.com/php/php-src/pull/22853
Author: realFlowControl

Follow up to https://github.com/php/php-src/pull/22712#issuecomment-5037699889

This moves the runtime capability check into `zend_jit_check_support()`. When the `pthread_jit_write_protect_np()` is unavailable at runtime, OPcache now logs an `ACCEL_LOG_WARNING`, disables JIT, and continues using the interpreter. This matches the existing unsupported-JIT behavior.