#40819 [NEW]: setlocale randomly ignored
From: matthijs at 1key dot nl
Operating system: Windows Server 2003 R2 Standard
PHP version: 5.2.1
PHP Bug Type: Date/time related
Bug description: setlocale randomly ignored
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 bug report at http://bugs.php.net/?id=40819&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40819&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40819&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40819&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40819&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40819&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40819&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40819&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40819&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40819&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40819&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40819&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40819&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40819&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40819&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40819&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40819&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40819&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40819&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40819&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40819&r=mysqlcfg
Thread (7 messages)
- matthijs at 1key dot nl