summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2018-06-22 10:56:42 +0200
committerAnatol Belski <ab@php.net>2018-06-22 11:05:30 +0200
commitbb2f1a683003559ada1c70166557bd7ac2845a11 (patch)
tree6a3edadc883855cacace6d34d39b750c57c8f87d /ext/pcre/php_pcre.c
parent71e18471f2ee0b0c39ee262186f6cae5919e15c8 (diff)
downloadphp-git-bb2f1a683003559ada1c70166557bd7ac2845a11.tar.gz
Fixed bug #76514 Regression in preg_match makes it fail with PREG_JIT_STACKLIMIT_ERROR
Looks like some patterns might require more stack for JIT execution. It is a regression, as the same pattern was passing using JIT.
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 9e1a5a6a50..79679e59e7 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -75,7 +75,7 @@ PHPAPI ZEND_DECLARE_MODULE_GLOBALS(pcre)
#ifdef HAVE_PCRE_JIT_SUPPORT
#define PCRE_JIT_STACK_MIN_SIZE (32 * 1024)
-#define PCRE_JIT_STACK_MAX_SIZE (64 * 1024)
+#define PCRE_JIT_STACK_MAX_SIZE (192 * 1024)
ZEND_TLS pcre2_jit_stack *jit_stack = NULL;
#endif
ZEND_TLS pcre2_general_context *gctx = NULL;