Skip to content

Fix #76999: mb-regex-set-options return current options #5264

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 1 commit into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Mar 13, 2020

When setting new options, mb_regex_set_options() is supposed to
return the previous options.

When setting new options, `mb_regex_set_options()` is supposed to
return the *previous* options.
@cmb69
Copy link
Member Author

cmb69 commented Mar 13, 2020

This is obviously a BC break, but now the function behaves as documented. Alternative: change documentation, but keep the function's behavior.

@Girgias
Copy link
Member

Girgias commented Mar 13, 2020

IMHO it's better to change the function as most of our setter function return the previous option IIRC

@cmb69 cmb69 added the Bug label Mar 15, 2020
@nikic
Copy link
Member

nikic commented Mar 16, 2020

I think we should do this, but not for 7.3. 7.4/master should be fine.

@cmb69
Copy link
Member Author

cmb69 commented Mar 16, 2020

7.4/master should be fine.

Makes sense. So whether this should go into 7.4 should be decided by the RMs. @derickr, @petk, what do you think?

@cmb69
Copy link
Member Author

cmb69 commented Mar 27, 2020

Okay, applied to master as 9e77d5a.

@cmb69 cmb69 closed this Mar 27, 2020
@cmb69 cmb69 deleted the cmb/76999 branch March 27, 2020 09:35
cmb69 added a commit to cmb69/doc-en that referenced this pull request Mar 27, 2020
php-pulls pushed a commit to php/doc-en that referenced this pull request Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants