|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76514 Regression in preg_match makes it fail with PREG_JIT_STACKLIMIT_ERROR
Submitted: 2018-06-21 16:02 UTC Modified: 2018-06-21 21:34 UTC
From: Assigned:
Status: Closed Package: PCRE related
PHP Version: 7.3.0alpha2 OS: Linux
Private report: No CVE-ID: None
 [2018-06-21 16:02 UTC]
preg_match fails with a PREG_JIT_STACKLIMIT_ERROR when it worked on 7.2 and below.

Test script:
It is quite lengthy so please see - the meat of it is in the last 10 lines, the rest is just a long test string we have in the composer test suite (that's where I found the failure: )

Expected result:
It should match as expected much like on older PHP releases


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-06-21 21:34 UTC]
-Status: Open +Status: Verified
 [2018-06-21 21:34 UTC]
PHP 7.3 upgraded to PCRE2, which apparently requires more
stack space for this pattern.  Increasing PCRE_JIT_STACK_MAX_SIZE[1]
to, say, 256 kibibytes should suffice in this case.

[1] <>
 [2018-06-22 09:06 UTC]
Automatic comment on behalf of ab
Log: Fixed bug #76514 Regression in preg_match makes it fail with PREG_JIT_STACKLIMIT_ERROR
 [2018-06-22 09:06 UTC]
-Status: Verified +Status: Closed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 19:01:33 2024 UTC