PHP 4.0 Bug #9138: setlocale changes over all thought process of Apache child.
| From: | ngaugler at ngworld dot net | Date: | Wed, 07 Feb 2001 00:08:11 +0000 |
| Subject: | PHP 4.0 Bug #9138: setlocale changes over all thought process of Apache child. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45902@lists.php.net to get a copy of this message | ||
From: ngaugler@ngworld.net
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