Skip to content

Fix #53251: bindtextdomain with null dir doesn't return old value #6631

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 Jan 22, 2021

Apparently, users expect bindtextdomain and bind_textdomain_codeset
with null as second argument to work like their C counterparts,
namely to return the previously set value. Thus, we support that.


This issue may not be regarded as bug at all, but I still suggest to merge into PHP-8.0 at least.

Apparently, users expect `bindtextdomain` and `bind_textdomain_codeset`
with `null` as second argument to work like their C counterparts,
namely to return the previously set value.  Thus, we support that.
@cmb69 cmb69 added the Bug label Jan 22, 2021
Copy link
Member

@nikic nikic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't read the full discussion in the bug report, but the change makes sense to me.

@php-pulls php-pulls closed this in d319098 Jan 25, 2021
php-pulls pushed a commit to php/doc-en that referenced this pull request Jan 25, 2021
php-pulls pushed a commit to php/doc-ja that referenced this pull request Jan 25, 2021
@cmb69 cmb69 deleted the cmb/53251 branch January 25, 2021 17:51
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.

2 participants