php.net |  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
Votes:1
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.
Password:
Status:
Package:
Bug Type:
Summary:
From: rmarth at firemail dot de
New email:
PHP Version: OS:

 

 [2004-02-27 04:47 UTC] rmarth at firemail dot de
Description:
------------
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:

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

Output: German_Germany.1252
Donnerstag, 26.Februar

Works.


bar.php
---------->
echo setlocale (LC_ALL, array('de_DE', 'de_DE@euro', 'de', 'ge', 'german');
<---------

foo2.php
---------->
require('bar.php');
strftime("%A, %d.%m.");
<---------

Output: German_Germany.1252
Thursday, 26.February

Doesn't Work.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-06 14:38 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Cannot reproduce on Linux. 
 [2004-03-11 09:54 UTC] sniper@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 21:01:29 2024 UTC