#40819 [Opn->Bgs]: setlocale randomly ignored

From: Date: Thu, 15 Mar 2007 12:34:29 +0000
Subject: #40819 [Opn->Bgs]: setlocale randomly ignored
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-110376@lists.php.net to get a copy of this message
 ID:               40819
 Updated by:       mike@php.net
 Reported By:      matthijs at 1key dot nl
-Status:           Open
+Status:           Bogus
 Bug Type:         Date/time related
 Operating System: Windows Server 2003 R2 Standard
 PHP Version:      5.2.1
 New Comment:

If you're using ISAPI, note that setlocale() is not thread safe.


Previous Comments:
------------------------------------------------------------------------

[2007-03-15 11:33:59] matthijs at 1key dot nl

Description:
------------
On top of my script I inserted setlocale(LC_ALL, 'nld_NLD'); Sometimes
it displays the local date using strftime and sometimes the english
date. I cannot find any patern, it seems to happen randomly.

Reproduce code:
---------------
setlocale(LC_ALL, 'nld_NLD');
echo strftime('%A %d %B %Y om %H:%M', date());

Expected result:
----------------
donderdag 08 maart 2007 om 08:25

Actual result:
--------------
Thursday 08 March 2007 om 08:25


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


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


Thread (7 messages)

« previous php.bugs (#110376) next »