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

Add $before_needle argument to strrchr() #11430

Closed
wants to merge 1 commit into from

Conversation

HypeMC
Copy link
Contributor

@HypeMC HypeMC commented Jun 11, 2023

Similar functions such as strstr(), stristr() or its mb counterpart mb_strrchr() all have this parameter that allows returning part of the haystack before the occurrence of the needle. This function seems to be an exception.

@bukka
Copy link
Member

bukka commented Jun 16, 2023

I think this makes sense. Could you just message to internals mailing list and if there are no objections for a week or two, we can merge this.

@HypeMC
Copy link
Contributor Author

HypeMC commented Jul 21, 2023

@bukka Hi, it's been a couple of weeks now since I've sent the message to internals mailing list, so I was wondering if this is ready to be merged now or is there something else I need to do?

@bukka bukka closed this in f25474f Aug 24, 2023
@bukka
Copy link
Member

bukka commented Aug 24, 2023

@HypeMC Ok I merged it as a small self contained feature. It was also sent to internals and the functionality is already available in different functions so think it's ok for 8.3 even though we are quite close to RC.

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

Successfully merging this pull request may close these issues.

None yet

2 participants