-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Conversation
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. |
bad9a75
to
0ab2d55
Compare
0ab2d55
to
9679b4a
Compare
9679b4a
to
21107dc
Compare
@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? |
@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. |
Similar functions such as
strstr()
,stristr()
or its mb counterpartmb_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.