ID:               21965
 Updated by:       [EMAIL PROTECTED]
 Reported By:      thorsten dot kussler at communardo dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         Gettext related
 Operating System: Solaris
 PHP Version:      4.2.3


Previous Comments:
------------------------------------------------------------------------

[2004-03-28 11:33:31] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

[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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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)

------------------------------------------------------------------------

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

Reply via email to