php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27243 Gettext cache seems to be not reset when .mo file is updated
Submitted: 2004-02-13 12:49 UTC Modified: 2004-02-15 16:08 UTC
From: fch at hexanet dot fr Assigned:
Status: Not a bug Package: Gettext related
PHP Version: 4.3.4 OS: windows 98 SE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fch at hexanet dot fr
New email:
PHP Version: OS:

 

 [2004-02-13 12:49 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-15 16:08 UTC] sniper@php.net
This is gettext feature. Not PHP bug -> bogus.

 [2010-05-25 16:57 UTC] outliver at web dot de
There should be a method to clear its cache then.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC