Skip to content

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

Open
lacatoire wants to merge 3 commits into
php:masterfrom
lacatoire:pcre-8.4-lib-update-changes
Open

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

Conversation

@lacatoire

@lacatoire lacatoire 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
lacatoire force-pushed the pcre-8.4-lib-update-changes branch from eba3d4f to 646ba2c Compare August 4, 2026 11:48
Comment thread reference/pcre/pattern.syntax.xml Outdated
Comment thread reference/pcre/pattern.syntax.xml Outdated
lacatoire and 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
lacatoire force-pushed the pcre-8.4-lib-update-changes branch from 2450c3c to eca6347 Compare August 16, 2026 16:19
Sign up for free to 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