Bug #76514 [Opn->Ver]: Regression in preg_match makes it fail with PREG_JIT_STACKLIMIT_ERROR

From: Date: Thu, 21 Jun 2018 21:34:50 +0000
Subject: Bug #76514 [Opn->Ver]: Regression in preg_match makes it fail with PREG_JIT_STACKLIMIT_ERROR
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215843@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76514&edit=1 ID: 76514 Updated by: cmb@php.net Reported by: seld@php.net Summary: Regression in preg_match makes it fail with PREG_JIT_STACKLIMIT_ERROR -Status: Open +Status: Verified Type: Bug Package: PCRE related Operating System: Linux PHP Version: 7.3.0alpha2 Block user comment: N Private report: N New Comment: 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] <https://github.com/php/php-src/blob/71d16feebbb38f69007d8b7bec44afeb916281fb/ext/pcre/php_pcre.c#L78> Previous Comments: ------------------------------------------------------------------------ [2018-06-21 16:02:16] seld@php.net Description: ------------ 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 https://3v4l.org/EUu5k - 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: https://travis-ci.org/composer/composer/jobs/394160719 ) Expected result: ---------------- It should match as expected much like on older PHP releases ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76514&edit=1

« previous php.bugs (#215843) next »