php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9138 setlocale changes over all thought process of Apache child.
Submitted: 2001-02-06 19:08 UTC Modified: 2001-04-16 05:24 UTC
From: ngaugler at ngworld dot net Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.3pl1 OS: Sun OS 5.7
Private report: No CVE-ID: None
 [2001-02-06 19:08 UTC] ngaugler at ngworld dot net
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!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-16 17:37 UTC] sniper@php.net
Does this happen with latest CVS snapshot from http://snaps.php.net/ ?

--Jani

 [2001-04-16 05:24 UTC] jmoore@php.net
Please try this with 4.0.5 when it is released and repoen report if the problem still persists

- James
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 18:01:28 2024 UTC