mirror of
https://github.com/predis/predis.git
synced 2026-11-08 19:06:36 +00:00
3e12b8acdb
* Fix quadratic-time parsing of MONITOR events Anchor the metadata pattern in `Monitor\Consumer` to the start of the event. The unanchored pattern scanned command arguments even for events with a valid header, because `preg_replace_callback()` searches once more after reaching its limit. With PCRE JIT disabled, or with older PCRE, a 64 KB argument of `[1 ` sequences took seconds to parse. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Remove comment about metadata matching --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>