Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

grapheme_substr inconsistency as compared to substr #73

Open
Xerkus opened this issue Mar 17, 2017 · 1 comment
Open

grapheme_substr inconsistency as compared to substr #73

Xerkus opened this issue Mar 17, 2017 · 1 comment

Comments

@Xerkus
Copy link
Member

Xerkus commented Mar 17, 2017

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.

@Xerkus Xerkus changed the title grapheme_substr inconsistency compared to substr grapheme_substr inconsistency as compared to substr Mar 17, 2017
@weierophinney
Copy link
Member

This repository has been closed and moved to laminas/laminas-stdlib; a new issue has been opened at laminas/laminas-stdlib#2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants