Skip to content

Commit bb2f1a6

Browse files
committed
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.
1 parent 71e1847 commit bb2f1a6

File tree

2 files changed

+543
-1
lines changed

2 files changed

+543
-1
lines changed

ext/pcre/php_pcre.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ PHPAPI ZEND_DECLARE_MODULE_GLOBALS(pcre)
7575

7676
#ifdef HAVE_PCRE_JIT_SUPPORT
7777
#define PCRE_JIT_STACK_MIN_SIZE (32 * 1024)
78-
#define PCRE_JIT_STACK_MAX_SIZE (64 * 1024)
78+
#define PCRE_JIT_STACK_MAX_SIZE (192 * 1024)
7979
ZEND_TLS pcre2_jit_stack *jit_stack = NULL;
8080
#endif
8181
ZEND_TLS pcre2_general_context *gctx = NULL;

0 commit comments

Comments
 (0)