ID: 12877
Updated by: sniper
Old Status: Open
Status: Feedback
Bug Type: Date/time related
Operating System: Linux
PHP Version: 4.0.6
New Comment:

Then there is something seriously broken
in your system, since this works just fine
for me on Linux..

Are you sure you have those locales installed?


Previous Comments:

[2001-08-21 10:30:54] [EMAIL PROTECTED]


The locale is not supported in php-4.0.6.

Example the file t.php:


setlocale ("LC_TIME", "C");
print (strftime ("%A in Finnish is "));
setlocale ("LC_TIME", "fi_FI");
print (strftime ("%A, in French "));
setlocale ("LC_TIME", "fr_CA");
print (strftime ("%A and in German "));
setlocale ("LC_TIME", "de_DE");
print (strftime ("%A.\n"));


used as : 

$  /usr/local/stow/php-4.0.6/bin/php t.php

displays : 

X-Powered-By: PHP/4.0.6
Content-type: text/html

Tuesday in Finnish is Tuesday, in French Tuesday and in 
German Tuesday.



Edit this bug report at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to