|  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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-2021 The PHP Group
All rights reserved.
Last updated: Wed Mar 03 16:01:24 2021 UTC