Open kohler opened 2 years ago
I can reproduce this with PCRE 10.35 and 10.40 (latest release). It is most likely an issue in the PCRE2 JIT engine, so should be reported upstream if (still) reproducible there.
It was reproducible; this regex blows out the JIT stack. I reported it https://github.com/PCRE2Project/pcre2/issues/156
I reported it PCRE2Project/pcre2#156
Thank you! I suggest to keep this issue open, just in case there might be a solution which we want to backport to our bundled PCRE2.
Description
A rather simple anchored pattern produces different results with and without the PCRE JIT when applied to a string just over 8192 characters. The JIT result is wrong.
3v4l.org link
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
PHP 8.0.12 and many others down to 7.3.30
Operating System
Mac OS X, Amazon Linux