Skip to content

ext/pcre: document variable-length lookbehind and longer subpattern names (PHP 8.4) - #5739

Merged
jordikroon merged 3 commits into
php:masterfrom
lacatoire:pcre-8.4-lib-update-changes
Aug 17, 2026
Merged

ext/pcre: document variable-length lookbehind and longer subpattern names (PHP 8.4)#5739
jordikroon merged 3 commits into
php:masterfrom
lacatoire:pcre-8.4-lib-update-changes

Conversation

@lacatoire

@lacatoirelacatoire commented Aug 4, 2026

Copy link
Copy Markdown
Member

Resolves the following issues:

PHP 8.4 Documentation Tracker (view)
PHP 8.4 Documentation Tracker (view)

Sources

Checked on php:8.3-cli (PCRE 10.42) and php:8.4-cli (PCRE 10.44):

  • (?<!dogs?|cats?)bar and (?<=ab(c|de))x fail to compile on 8.3 and compile and match on 8.4
  • the longest accepted subpattern name is 32 characters on 8.3 and 128 on 8.4

@lacatoire
lacatoireforce-pushed the pcre-8.4-lib-update-changes branch from eba3d4f to 646ba2cCompareAugust 4, 2026 11:48
Comment threadreference/pcre/pattern.syntax.xml Outdated
Comment threadreference/pcre/pattern.syntax.xml Outdated
lacatoireand others added 2 commits August 16, 2026 14:24
Co-authored-by: Jordi Kroon <jordi@jordikroon.nl>
Document variable-length lookbehind as the current behaviour and move the
fixed-length restriction below, as historical information for versions
prior to PHP 8.4.0.
@lacatoire
lacatoireforce-pushed the pcre-8.4-lib-update-changes branch from 2450c3c to eca6347CompareAugust 16, 2026 16:19
@jordikroon
jordikroon merged commit c083c88 into php:masterAug 17, 2026
2 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@lacatoire@jordikroon