Bug #27243 [Com]: Gettext cache seems to be not reset when .mo file is updated

From: Date: Tue, 25 May 2010 14:57:59 +0000
Subject: Bug #27243 [Com]: 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-150794@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=27243&edit=1 ID: 27243 Comment by: outliver at web dot de Reported by: fch at hexanet dot fr Summary: Gettext cache seems to be not reset when .mo file is updated Status: Bogus Type: Bug Package: Gettext related Operating System: windows 98 SE PHP Version: 4.3.4 New Comment: There should be a method to clear its cache then. Previous Comments: ------------------------------------------------------------------------ [2004-02-15 16:08:02] sniper@php.net This is gettext feature. Not PHP bug -> bogus. ------------------------------------------------------------------------ [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/bug.php?id=27243&edit=1

« previous php.bugs (#150794) next »