Re: php gettext bindtextdomain behavior
| From: | Jean-Sébastien H. | Date: | Sun, 07 Nov 2010 11:14:27 +0000 |
| Subject: | Re: php gettext bindtextdomain behavior | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-50118@lists.php.net to get a copy of this message | ||
Le 05/11/2010 21:06, Gerry Reno a écrit :
> In PHP 5.2.4 (my version) the gettext bindtextdomain function is not
> returning the existing directory settings when the directory argument
> is NULL.
> That is the expected behavior for bindtextdomain with GNU and it works
> this way elsewhere such as in python.
>
> [...]
>
> Can PHP gettext bindtextdomain be fixed to correctly return the
> existing setting when called with a NULL directory argument?
>
> I was not sure if this was a bug so I thought I would present the
> issue on the internal list first.
I filled a bug-report with a patch.
But my patch introduce a BC (see my non regression test :
ext/gettext/tests/gettext_bindtextdomain-nulldir.phpt)
http://bugs.php.net/bug.php?id=53251
--
Jean-Sébastien H.
Au-Fil-Du.Net