Skip to content

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

Open
lacatoire wants to merge 1 commit 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 1 commit into
php:masterfrom
lacatoire:pcre-8.4-lib-update-changes

Conversation

@lacatoire

Copy link
Copy Markdown
Member

@lacatoire
lacatoire force-pushed the pcre-8.4-lib-update-changes branch from eba3d4f to 646ba2c Compare August 4, 2026 11:48
</para>
<simpara>
As of PHP 8.4.0, which bundles PCRE2 10.44, the maximum length of a
subpattern name is 128 characters; prior to PHP 8.4.0 it was 32 characters.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
subpattern name is 128 characters; prior to PHP 8.4.0 it was 32 characters.
subpattern name is 128 characters; previously it was 32 characters.

of the section on once-only subpatterns.
</para>
<simpara>
The fixed-length restriction described above applies prior to PHP 8.4.0.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't mention that the behavior described above applies to older versions. Instead, we should move the older behaviour below and state that the current description applies to PHP 8.4.0 and later. The documentation should reflect the latest version by default, whereas behaviour from older versions should be documented separately as historical information.

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