PHP 4.0 Bug #9138 Updated: setlocale changes over all thought process of Apache child.

From: Date: Fri, 16 Mar 2001 22:37:09 +0000
Subject: PHP 4.0 Bug #9138 Updated: setlocale changes over all thought process of Apache child.
Groups: php.dev 
Request: Send a blank email to php-dev+get-49158@lists.php.net to get a copy of this message
ID: 9138 Updated by: sniper Reported By: ngaugler@ngworld.net Old-Status: Open Status: Feedback Bug Type: Apache related Assigned To: Comments: Does this happen with latest CVS snapshot from http://snaps.php.net/ ? --Jani Previous Comments: --------------------------------------------------------------------------- [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

« previous php.dev (#49158) next »