[php-src] PR #25122: ext/strmatch: Add prepared string matching and replacement

From: Date: Sun, 01 Nov 2026 11:05:02 +0000
Subject: [php-src] PR #25122: ext/strmatch: Add prepared string matching and replacement
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40174@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25122 Author: ArtUkrainskiy Introduce independent final Str\Matcher and Str\Replacer classes for reusing fixed keyword dictionaries across subjects. Use Aho-Corasick for byte-based matching and reversed matching for leftmost-longest replacement. Keep result keywords as shared strings, check count overflow, and reject repeated initialization. Include Unix and Windows build configuration and 20 PHPT tests.

« previous php.git-pulls (#40174) next »