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

From: Date: Fri, 22 Jun 2018 09:06:13 +0000
Subject: Bug #76514 [Ver->Csd]: 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-215848@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: ab@php.net Reported by: seld@php.net Summary: Regression in preg_match makes it fail with PREG_JIT_STACKLIMIT_ERROR -Status: Verified +Status: Closed Type: Bug Package: PCRE related Operating System: Linux PHP Version: 7.3.0alpha2 Block user comment: N Private report: N New Comment: Automatic comment on behalf of ab Revision: http://git.php.net/?p=php-src.git;a=commit;h=bb2f1a683003559ada1c70166557bd7ac2845a11 Log: Fixed bug #76514 Regression in preg_match makes it fail with PREG_JIT_STACKLIMIT_ERROR Previous Comments: ------------------------------------------------------------------------ [2018-06-21 21:34:48] cmb@php.net 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> ------------------------------------------------------------------------ [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 (#215848) next »