Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grapheme_substr inconsistency as compared to substr #2

Open
weierophinney opened this issue Dec 31, 2019 · 0 comments
Open

grapheme_substr inconsistency as compared to substr #2

weierophinney opened this issue Dec 31, 2019 · 0 comments

Comments

@weierophinney
Copy link
Member

grapheme_substr from Intl have differing behavior as compared to substr:

var_dump(substr('a', 1, null)); //  string(0) ""`
var_dump(grapheme_substr('a', 1, null)); // bool(false)

It looks like on php 5.x it also produces warning.

This behavior needs to be investigated against other wrappers and corrected if needed.


Originally posted by @Xerkus at zendframework/zend-stdlib#73

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

No branches or pull requests

1 participant