]> granicus.if.org Git - php/commit
Change the way JIT availability is checked
authorAnatol Belski <ab@php.net>
Sat, 3 Nov 2018 19:29:51 +0000 (20:29 +0100)
committerAnatol Belski <ab@php.net>
Sat, 3 Nov 2018 19:50:05 +0000 (20:50 +0100)
commitaea411657ee20572f8268060a4afa73bc3795497
treebe55e681acba9cc45bd2430fbb6cdc38275a362b
parentd92f7630f7939ae5e2dff710f655d5c4f37a84b3
Change the way JIT availability is checked

The pcre2_jit_compile_8 sysmbol is always available, even JIT might be
not. If JIT is not enabled explicitly and is enabled in the PHP runtime,
this will lead to a malfunction. This approach ensures JIT is indeed
available on the given platform. For cross compilation this might get
complicated, as it would require an explicit processor architecture and
PCRE2 version check.

Another solution for this case is to run pcre2_config at runtime. That
however would require more condition checks that would impact
architectures where JIT is available.
ext/pcre/config0.m4