From:             [EMAIL PROTECTED]
Operating system: Sun OS 5.7
PHP version:      4.0.3pl1
PHP Bug Type:     Apache related
Bug description:  setlocale changes over all thought process of Apache child.

Script:
<?

        setlocale ("LC_TIME", "es");

?>

Desc:
When PHP is compiled as an Apache module, and an individual script changes the locale 
via setlocale, PHP never resets it, and the Apache child continues to run in the new 
locale.  The problem with this is the log file gets printed in a new locale, and any 
new requests coming into that individual Apache child use the same setlocale as the 
original request.  This causes problems with other PHP based scripts, as well as 
analyzing programs trying to determine the numerous locales printed in the log file. 
(ie: Jan can be ene, Jan, etc..)  Please have setlocale replaced to what it was before 
the PHP script ran, as well as any other variables that can be thought to do this when 
this is brought to your attention.  Thanks!


-- 
Edit Bug report at: http://bugs.php.net/?id=9138&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to