From: rmarth at firemail dot de Operating system: Win2k SP4 PHP version: 4.3.5RC3 PHP Bug Type: *Languages/Translation Bug description: setlocale doesn't work when called in an included file
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', '[EMAIL PROTECTED]', 'de', 'ge', 'german'); strftime("%A, %d.%B."); <---------- Output: German_Germany.1252 Donnerstag, 26.Februar Works. bar.php ----------> echo setlocale (LC_ALL, array('de_DE', '[EMAIL PROTECTED]', 'de', 'ge', 'german'); <--------- foo2.php ----------> require('bar.php'); strftime("%A, %d.%m."); <--------- Output: German_Germany.1252 Thursday, 26.February Doesn't Work. -- Edit bug report at http://bugs.php.net/?id=27414&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27414&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27414&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27414&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27414&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27414&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27414&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27414&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27414&r=support Expected behavior: http://bugs.php.net/fix.php?id=27414&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27414&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27414&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27414&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27414&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27414&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27414&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27414&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27414&r=float