#27243 [Opn->Bgs]: Gettext cache seems to be not reset when .mo file is updated

From: Date: Sun, 15 Feb 2004 21:08:09 +0000
Subject: #27243 [Opn->Bgs]: Gettext cache seems to be not reset when .mo file is updated
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-54966@lists.php.net to get a copy of this message
ID: 27243 Updated by: sniper@php.net Reported By: fch at hexanet dot fr -Status: Open +Status: Bogus Bug Type: Gettext related Operating System: windows 98 SE PHP Version: 4.3.4 New Comment: This is gettext feature. Not PHP bug -> bogus. Previous Comments: ------------------------------------------------------------------------ [2004-02-13 12:49:49] fch at hexanet dot fr Description: ------------ In my .po file, there is : msgid "Hello" msgstr "Bonjur" gettext() return : Bonjur If I update my .po file with : msgid "Hello" msgstr "Bonjour" and generate a new .mo file, gettext() return again : Bonjur Apache must be restarted to gettext() return : Bonjour Reproduce code: --------------- <?php putenv('LANG=myLocale'); setlocale(LC_ALL, 'myLocale'); bindtextdomain('mydomain', 'path_to_locale_directory'); textdomain('mydomain'); echo gettext('Hello'); ?> Expected result: ---------------- If .mo file is updated, gettext() must return updated value. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27243&edit=1

« previous php.bugs (#54966) next »