php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44481 Timezone database is corrupt
Submitted: 2008-03-19 15:08 UTC Modified: 2008-03-19 15:28 UTC
From: bvidinli at gmail dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.2.5 OS: Debian 4.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bvidinli at gmail dot com
New email:
PHP Version: OS:

 

 [2008-03-19 15:08 UTC] bvidinli at gmail dot com
Description:
------------
Timezone database is corrupt
this is same bug in http://bugs.php.net/bug.php?id=39993

ns1:/var/www/vhosts/ehcp# 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
ns1:/var/www/vhosts/ehcp# 



some part of phpinfo():
phpinfo()
PHP Version => 5.2.0-8+etch10

System => Linux ns1 2.6.18-5-686 #1 SMP Mon Dec 24 16:41:07 UTC 2007 i686
Build Date => Jan 18 2008 18:48:30
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php5/cli/php.ini
Scan this dir for additional .ini files => /etc/php5/cli/conf.d
additional .ini files parsed => /etc/php5/cli/conf.d/gd.ini,
/etc/php5/cli/conf.d/mysql.ini,
/etc/php5/cli/conf.d/mysqli.ini,
/etc/php5/cli/conf.d/pdo.ini,
/etc/php5/cli/conf.d/pdo_mysql.ini

PHP API => 20041225
PHP Extension => 20060613
Zend Extension => 220060519
Debug Build => no
Thread Safety => disabled
Zend Memory Manager => enabled
IPv6 Support => enabled
Registered PHP Streams => zip
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters => string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*





Reproduce code:
---------------
TZ=Europe/Istanbul LANG=tr_TR.UTF-8 php -r 'echo date(?l?); '


Expected result:
----------------
the day, not error.. 

Actual result:
--------------
Fatal error: date(): Timezone database is corrupt - this should *never* happen! in Command line code on line 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-19 15:21 UTC] derick@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

Don\'t lie about your versions, you have 5.2.0 and not 5.2.5. That bug you referenced was about 5.2.0, so obviously it\'s not fixed in 5.2.0.
 [2008-03-19 15:28 UTC] bvidinli at gmail dot com
hi,

i dont have anything, any reason to lie to you,
i selected 5.2.5, because it was nearest choice in your bug-submitting page. 

i know it is in fact, 5.2.0-8+etch10, as i sent you in first post..
so, think again before accusing someone with a lie.


lets come to bug:
i use debian, and debians package manager of apt-get.
it seems that debian has not updated its packages. am i right ?

i will just test with your latest version, then submit the result.

see you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 22:01:31 2024 UTC