Skip to content

Allow empty needle in grapheme_str*pos, grapheme_str*str #6245

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

Closed
wants to merge 3 commits into from

Conversation

chschneider
Copy link
Contributor

Allow empty need in various grapheme_str* functions to bring them closer in line with strpos/strstr.
This addresses php/php-tasks#20

@php-pulls php-pulls closed this in 7af24ea Oct 1, 2020
@nikic
Copy link
Member

nikic commented Oct 1, 2020

I've applied a followup fix in f82414e. On further review, the out of bounds handling was not quite right.

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