|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-03-16 17:37 UTC] sniper@php.net
[2001-04-16 05:24 UTC] jmoore@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 21:00:01 2025 UTC |
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!