diff options
author | Xinchen Hui <laruence@gmail.com> | 2017-11-14 10:50:41 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2017-11-14 11:02:16 +0800 |
commit | 266f19babbd26a58d20d40f2af25482f4a1d0d90 (patch) | |
tree | 5ff54a6f915bbe5e289eb807a36e50fda186cbe3 /ext/pcre/php_pcre.c | |
parent | 61ae64f6ab8e73f9cfd3e3b69987e699ded4d104 (diff) | |
download | php-git-266f19babbd26a58d20d40f2af25482f4a1d0d90.tar.gz |
Added PCRE_JIT_SUPPORT flag
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index d528105f77..ed314622cc 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -392,6 +392,12 @@ static PHP_MINIT_FUNCTION(pcre) REGISTER_LONG_CONSTANT("PCRE_VERSION_MAJOR", PCRE2_MAJOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("PCRE_VERSION_MINOR", PCRE2_MINOR, CONST_CS | CONST_PERSISTENT); +#ifdef HAVE_PCRE_JIT_SUPPORT + REGISTER_BOOL_CONSTANT("PCRE_JIT_SUPPORT", 1, CONST_CS | CONST_PERSISTENT); +#else + REGISTER_BOOL_CONSTANT("PCRE_JIT_SUPPORT", 0, CONST_CS | CONST_PERSISTENT); +#endif + return SUCCESS; } /* }}} */ |