#21965 [NoF->Opn]: gettext uses entries out of different files at the same time
| From: | rasmus@php.net | Date: | Sun, 28 Mar 2004 16:33:31 +0000 |
| Subject: | #21965 [NoF->Opn]: gettext uses entries out of different files at the same time | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-56978@lists.php.net to get a copy of this message | ||
ID: 21965
Updated by: rasmus@php.net
Reported By: thorsten dot kussler at communardo dot de
-Status: No Feedback
+Status: Open
Bug Type: Gettext related
Operating System: Solaris
PHP Version: 4.2.3
New Comment:
Are you always calling textdomain() at the beginning of your script?
There is no code in the gettext extension, as far as I can see, that
resets the default text domain after a request, so the text domain from
one request is going to leak to the next for any particular httpd
process. The workaround is obviously to always explicitly set it at
the beginning of every request.
Previous Comments:
------------------------------------------------------------------------
[2004-03-28 08:27:51] timo dot hummel at 4fb dot de
I can confirm this. This bug especially occurs when the following
conditions are met:
- Multiple domains
- Switching forth and back between different languages
I reproduced this on a RedHat 9 system, with the following results:
After a certain period of time, the strings for any second textdomain
are switching between the translated and untranslated string; seems
like it's because the different HTTP server processes. After restarting
the web server, the problems can't be reproduced, or when the path is
being changed.
Does the PHP gettext implementation cache the results after getting the
gettext string from the gettext library?
That would explain the troubles.
------------------------------------------------------------------------
[2003-07-20 10:40:41] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2003-07-15 02:21:18] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
And if it still happens, provide a short test script.
------------------------------------------------------------------------
[2003-07-15 02:19:18] thorsten dot kussler at communardo dot de
The configure line was:
'./configure' '--with-oci8=/home/oracle/product/8.1.7'
'--with-apxs=/usr/local/apache/bin/apxs' '--with-gettext=/usr/local'
'--with-ldap=/usr'
and a second version directly compiled with Apache (--with-Apache)
------------------------------------------------------------------------
[2003-07-12 23:37:49] sniper@php.net
I bet this happens with later PHP versions, like 4.3.2 too?
What is the full configure line you have used to configure PHP ??
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21965
--
Edit this bug report at http://bugs.php.net/?id=21965&edit=1