[php-src] PR #13583: ext/pcre: Add "/r" modifier

From: Date: Sun, 03 Mar 2024 15:44:48 +0000
Subject: [php-src] PR #13583: ext/pcre: Add "/r" modifier
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-25225@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/13583 Author: Ayesh Adds support for "Caseless restricted" matching added in PCRE2lib 10.43 with the "r" modifier. This is PCRE2_EXTRA_CASELESS_RESTRICT in PCRE2. This is an "extra" option, which means it is not possible to pass this option as pcre2_compile() function parameter. This option is passed in a pcre2_set_compile_extra_options() call. Previously, these extra options are set at php_pcre_init_pcre2(), but after this change, it is possible to customize the options by adding bits to eoptions in pcre_get_compiled_regex_cache_ex(). The tests for this change are ported from upstream test suite[^1]. [^1]: https://github.com/PCRE2Project/pcre2/commit/c13d54f6581#diff-8c8312e4eb2d35bb16485404b7b5cc0eaef0bca1aa95ff5febf6a1890048305c

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