Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50118 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12192 invoked from network); 7 Nov 2010 11:14:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Nov 2010 11:14:37 -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.112 as permitted sender) X-PHP-List-Original-Sender: jeanseb@au-fil-du.net X-Host-Fingerprint: 80.12.242.112 smtp2e.orange.fr Received: from [80.12.242.112] ([80.12.242.112:8646] helo=smtp2e.orange.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 32/06-02615-A1A86DC4 for ; Sun, 07 Nov 2010 06:14:37 -0500 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2e12.orange.fr (SMTP Server) with ESMTP id 2E8FC8000379 for ; Sun, 7 Nov 2010 12:14:32 +0100 (CET) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2e12.orange.fr (SMTP Server) with ESMTP id 2024C800021F for ; Sun, 7 Nov 2010 12:14:32 +0100 (CET) Received: from [127.0.0.1] (APuteaux-153-1-54-8.w82-124.abo.wanadoo.fr [82.124.176.8]) by mwinf2e12.orange.fr (SMTP Server) with ESMTP id CE5898000379 for ; Sun, 7 Nov 2010 12:14:31 +0100 (CET) X-ME-UUID: 20101107111431845.CE5898000379@mwinf2e12.orange.fr X-ME-User-Auth: jean-sebastien.hedde0365@orange.fr Message-ID: <4CD68A13.90904@au-fil-du.net> Date: Sun, 07 Nov 2010 12:14:27 +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: internals@lists.php.net References: <4CD463AB.2090702@verizon.net> In-Reply-To: <4CD463AB.2090702@verizon.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 101106-1, 06/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=?=) 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