|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27414 setlocale doesn't work when called in an included file
Submitted: 2004-02-27 04:47 UTC Modified: 2004-03-11 09:54 UTC
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: rmarth at firemail dot de Assigned:
Status: No Feedback Package: *Languages/Translation
PHP Version: 4.3.5RC3 OS: Win2k SP4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
8 + 15 = ?
Subscribe to this entry?

 [2004-02-27 04:47 UTC] rmarth at firemail dot de
Calling setlocale() in an included file doesn't change the format of strftime().

System: Apache/1.3.29 (Win32) PHP/4.3.5RC3

Short Testcase:

echo setlocale (LC_ALL, array('de_DE', 'de_DE@euro', 'de', 'ge', 'german');
strftime("%A, %d.%B.");

Output: German_Germany.1252
Donnerstag, 26.Februar


echo setlocale (LC_ALL, array('de_DE', 'de_DE@euro', 'de', 'ge', 'german');

strftime("%A, %d.%m.");

Output: German_Germany.1252
Thursday, 26.February

Doesn't Work.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-06 14:38 UTC]
Please try using this CVS snapshot:
For Windows:

Cannot reproduce on Linux. 
 [2004-03-11 09:54 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Nov 28 05:01:27 2020 UTC