Req #69561 [Com]: FPM access.log strftime locale not configurable

From: Date: Fri, 01 May 2015 21:27:22 +0000
Subject: Req #69561 [Com]: FPM access.log strftime locale not configurable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192450@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69561&edit=1

 ID:                 69561
 Comment by:         mb at lunetics dot com
 Reported by:        mb at lunetics dot com
 Summary:            FPM access.log strftime locale not configurable
 Status:             Assigned
 Type:               Feature/Change Request
 Package:            FPM related
 Operating System:   FreeBSD 10.1
 PHP Version:        5.6.8
 Assigned To:        fat
 Block user comment: N
 Private report:     N

 New Comment:

Okay, did some further testing.

So somewhere hidden there's a 

setlocale(LC_ALL, 'de_DE.ISO8859-1', 'de_DE.ISO8859-15E');

call. So the current scripts Locale seems to affect the log output (which should be mostly English
in my opinion)

So it would be more a feature request having a custom locale for the fpm access.log strftime locale.


Previous Comments:
------------------------------------------------------------------------
[2015-05-01 21:06:49] mb at lunetics dot com

Description:
------------
It seems the access.log / php-fpm directive "guesses" the locale from the timezone set?

Systemtimezone is set to "Europe/Berlin" -> strftime %b -> "Mai"

tried setting the timezone to "Europe/London" -> strftime %b -> "Mail"


Would it be possible to set the locale for the access.log strftime parsing?



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=69561&edit=1


Thread (5 messages)

« previous php.bugs (#192450) next »