[php-src] Issue #8021: preg_match return false on a long string without warning or notice

From: Date: Wed, 02 Feb 2022 09:01:14 +0000
Subject: [php-src] Issue #8021: preg_match return false on a long string without warning or notice
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239422@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8021 Comment Author: damianwadley PCRE functions report errors through [preg_last_error](https://www.php.net/manual/en/function.preg-last-error.php)/[_msg](https://www.php.net/manual/en/function.preg-last-error-msg.php). In your case, the latter will tell you "JIT stack limit exhausted". https://3v4l.org/66PlR If this is an actual problem for you, you can adjust the regex to match more at a time, eg. https://3v4l.org/oLkVh will give you about 3x as many numbers, or you can disable JIT with the pcre.jit=0 setting.

« previous php.bugs (#239422) next »