Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50373 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87493 invoked from network); 18 Nov 2010 21:24:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2010 21:24:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=jeanseb@au-fil-du.net; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=jeanseb@au-fil-du.net; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain au-fil-du.net does not designate 80.12.242.133 as permitted sender) X-PHP-List-Original-Sender: jeanseb@au-fil-du.net X-Host-Fingerprint: 80.12.242.133 smtp11.smtpout.orange.fr Received: from [80.12.242.133] ([80.12.242.133:56357] helo=smtp.smtpout.orange.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/75-01108-C8995EC4 for ; Thu, 18 Nov 2010 16:24:31 -0500 Received: from [127.0.0.1] ([82.124.9.161]) by mwinf5d22 with ME id YlQP1f00B3UU73m03lQPrr; Thu, 18 Nov 2010 22:24:25 +0100 Message-ID: <4CE59982.7020202@au-fil-du.net> Date: Thu, 18 Nov 2010 22:24:18 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: Gerry Reno , internals@lists.php.net References: <4CD463AB.2090702@verizon.net> <4CD68A13.90904@au-fil-du.net> <4CD6B055.6080503@verizon.net> <4CD6BE6B.6050608@verizon.net> In-Reply-To: <4CD6BE6B.6050608@verizon.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 101118-1, 18/11/2010), Outbound message X-Antivirus-Status: Clean Subject: Re: [PHP-DEV] php gettext bindtextdomain behavior From: jeanseb@au-fil-du.net (=?UTF-8?B?IkplYW4tU8OpYmFzdGllbiBILiI=?=) Hi, Any feedback on this patch ? http://bugs.php.net/bug.php?id=53251 Regards, Le 07/11/2010 15:57, Gerry Reno a écrit : > On 11/07/2010 08:57 AM, Gerry Reno wrote: >> On 11/07/2010 06:14 AM, "Jean-Sébastien H." wrote: >>> 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 >>> >> >> Thanks for filing the bug. I reviewed the patch and it does not seem >> to do what is necessary. What it needs to do is to go get the >> current setting from the previous bindtextdomain call. This means >> that 'bindtextdomain' needs to store the current setting so that it >> can be retrieved later by a call with a NULL directory argument. >> >> >> > > I added some comments and clarifications on the bindtextdomain problem > into the bug http://bugs.php.net/bug.php?id=53251 > -- Jean-Sébastien H. Au-Fil-Du.Net