Bug #2652: PHP changes locale at start of request -> Apache logs mangled

From: Date: Tue, 02 Nov 1999 08:47:32 +0000
Subject: Bug #2652: PHP changes locale at start of request -> Apache logs mangled
Groups: php.dev 
Request: Send a blank email to php-dev+get-12073@lists.php.net to get a copy of this message
From: gordon+php@vip.fi Operating system: Linux 2.2.5-15smp PHP version: 3.0.12 PHP Bug Type: Other Bug description: PHP changes locale at start of request -> Apache logs mangled It seems that PHP is changing the locale at the start of each request that is passed to the module, thus mangling the Apache logs by inserting the name of the month of the current locale. From a human standpoint this is not a very big problem per se, but log analyzers like Analog and WebTrends choke on the lines that have the localised month name. A quick fix is to put setlocale(LC_ALL,"C") at the beginning of the function multi_log_transaction in Apache's mod_log_config, but I think the problem should be solved by modifying PHP. In bug report #404 Zeev comments that if PHP is modified to set the locale again at the end of each request a lot of overhead is created - but how else to counter the problem?

« previous php.dev (#12073) next »