From: tunix at raptiye dot org Operating system: Arch Linux PHP version: 5.2.0 PHP Bug Type: *Unicode Issues Bug description: tr_TR.UTF-8 locale has problems with PHP
Description: ------------ I type <?php echo date("l"); ?> into an empty php file and then run it in command line prompt, and it prints this error message: Fatal error: date(): Timezone database is corrupt - this should *never* happen! in Command line code on line 1 If I use tr_TR.UTF-8 locale, then I can produce this error. But if I use tr_TR.ISO8859-9 or C locales, it doesn't print the error message. Although, tr_TR.ISO8859-9 and C locales return Saturday which is English. It should return "Cumartesi" (turkish). GNU date command works fine with UTF-8 locale. [19:07] ([EMAIL PROTECTED] ~)$ TZ=Europe/Istanbul LANG=tr_TR.UTF-8 date +%A Cumartesi Reproduce code: --------------- [19:06] ([EMAIL PROTECTED] ~)$ TZ=Europe/Istanbul LANG=tr_TR.UTF-8 php -r date(l); Fatal error: date(): Timezone database is corrupt - this should *never* happen! in Command line code on line 1 Expected result: ---------------- It's supposed to be: [19:06] ([EMAIL PROTECTED] ~)$ TZ=Europe/Istanbul LANG=tr_TR.UTF-8 php -r date(l); Cumartesi -- Edit bug report at http://bugs.php.net/?id=39993&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39993&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39993&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39993&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39993&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39993&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39993&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39993&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39993&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39993&r=support Expected behavior: http://bugs.php.net/fix.php?id=39993&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39993&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39993&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39993&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39993&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39993&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39993&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39993&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39993&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39993&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39993&r=mysqlcfg