|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: rmarth at firemail dot de
New email:
PHP Version: OS:


 [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: Tue Nov 24 04:01:23 2020 UTC