Skip to content

Fix grapheme_str_split() on PCRE 8#616

Merged
nicolas-grekas merged 1 commit into
symfony:1.xfrom
GPHemsley:fix-grapheme-str-split
May 26, 2026
Merged

Fix grapheme_str_split() on PCRE 8#616
nicolas-grekas merged 1 commit into
symfony:1.xfrom
GPHemsley:fix-grapheme-str-split

Conversation

@GPHemsley
Copy link
Copy Markdown
Contributor

#598 bumped the PCRE2 version requirement from 10.39 to 10.44, in order to take advantage of the fix for PCRE2Project/pcre2#410, but left the PCRE1 version untouched at 8.32.

But the necessary fix was made 3 years after PCRE1 was EOL'd, so there is no 8.x version in which \X works the way grapheme_str_split() needs it to.

PHP 7.2.0 was bundled with PCRE1 8.41 before PHP 7.3.0 changed to PCRE2 10.32:
https://www.php.net/manual/en/pcre.installation.php

Falling back to the now-updated regex seems to work fine, though.

The PCRE 8 implementation of \X doesn't have the fix from 10.44.
@nicolas-grekas
Copy link
Copy Markdown
Member

Thank you @GPHemsley.

@nicolas-grekas nicolas-grekas merged commit 8a00b92 into symfony:1.x May 26, 2026
10 checks passed
@GPHemsley GPHemsley deleted the fix-grapheme-str-split branch May 26, 2026 13:28
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