Bug #9138 Updated: setlocale changes over all thought process of Apache child.
| From: | jmoore@php.net | Date: | Mon, 16 Apr 2001 09:24:24 +0000 |
| Subject: | Bug #9138 Updated: setlocale changes over all thought process of Apache child. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51641@lists.php.net to get a copy of this message | ||
ID: 9138
Updated by: jmoore
Reported By: ngaugler@ngworld.net
Old-Status: Feedback
Status: Closed
Bug Type: Apache related
PHP Version: 4.0.3pl1
Assigned To:
Comments:
Please try this with 4.0.5 when it is released and repoen report if the problem still persists
- James
Previous Comments:
---------------------------------------------------------------------------
[2001-03-16 17:37:09] sniper@php.net
Does this happen with latest CVS snapshot from http://snaps.php.net/ ?
--Jani
---------------------------------------------------------------------------
[2001-02-06 19:08:11] ngaugler@ngworld.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!
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9138&edit=2