Skip to content

The grapheme_strlen function returns null on encoding failures#5568

Open
chschneider wants to merge 1 commit into
php:masterfrom
chschneider:grapheme_strlen_returns_null_too
Open

The grapheme_strlen function returns null on encoding failures#5568
chschneider wants to merge 1 commit into
php:masterfrom
chschneider:grapheme_strlen_returns_null_too

Conversation

@chschneider
Copy link
Copy Markdown
Contributor

The documentation only mentions false for grapheme_strlen failures but in reality it also returns null for encoding failures (which is the more common failure case).
Mention this additional return value in the corresponding section.

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.

1 participant