summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-03-22 21:41:35 +0100
committerAnatol Belski <ab@php.net>2016-03-22 21:42:21 +0100
commit241ba9dcb195160e323847757413603a3cc72a1f (patch)
treef1f4abe1428de9788c63cc2cc0ef28f7e27fa7e2 /ext/pcre/php_pcre.c
parent1efcdaf092a8e26342b67f2c7765be25dd459b4b (diff)
downloadphp-git-241ba9dcb195160e323847757413603a3cc72a1f.tar.gz
if there's no JIT support, no RINIT is really needed
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 24ed6ca5d6..f6f86304e5 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -212,18 +212,18 @@ static PHP_MSHUTDOWN_FUNCTION(pcre)
}
/* }}} */
+#ifdef PCRE_STUDY_JIT_COMPILE
/* {{{ PHP_RINIT_FUNCTION(pcre) */
static PHP_RINIT_FUNCTION(pcre)
{
-#ifdef PCRE_STUDY_JIT_COMPILE
if (PCRE_G(jit)) {
jit_stack = pcre_jit_stack_alloc(PCRE_JIT_STACK_MIN_SIZE,PCRE_JIT_STACK_MAX_SIZE);
}
-#endif
return SUCCESS;
}
/* }}} */
+#endif
/* {{{ static pcre_clean_cache */
static int pcre_clean_cache(zval *data, void *arg)
@@ -2232,7 +2232,11 @@ zend_module_entry pcre_module_entry = {
pcre_functions,
PHP_MINIT(pcre),
PHP_MSHUTDOWN(pcre),
+#ifdef PCRE_STUDY_JIT_COMPILE
PHP_RINIT(pcre),
+#else
+ NULL
+#endif
NULL,
PHP_MINFO(pcre),
PHP_PCRE_VERSION,