php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42856 Timezone database is corrupt
Submitted: 2007-10-04 16:16 UTC Modified: 2007-11-02 01:00 UTC
Votes:7
Avg. Score:3.6 ± 0.9
Reproduced:7 of 7 (100.0%)
Same Version:2 (28.6%)
Same OS:4 (57.1%)
From: php at blazemonger dot com Assigned:
Status: No Feedback Package: Date/time related
PHP Version: 5.2.4 OS: Windows 2003 Server x64
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at blazemonger dot com
New email:
PHP Version: OS:

 

 [2007-10-04 16:16 UTC] php at blazemonger dot com
Description:
------------
While stress-testing our MediaWiki installation (hammering it with many page requests to Special:Random), I saw a few of these in the Apache logs:

PHP Fatal error:  date() [<a href='function.date'>function.date</a>]: Timezone database is corrupt - this should *never* happen! in D:\\mediawiki\\w\\includes\\Parser.php on line 2458

The line is:
$ts = time();
/* ... intermediate lines ... */
$localYear = date( 'Y', $ts );

I found http://bugs.php.net/bug.php?id=39993 which looks related but it supposedly has been closed.

MediaWiki 1.11.0
PHP: 5.2.4 (apache2handler)
MySQL: 5.0.45-community-nt
Apache 2.2.6 (patched version for Windows from apachelounge.org)
Windows 2003 server


Reproduce code:
---------------
Happens while stress-testing, hammering the webserver with thousands of requests from 3 simultaneous clients.


Expected result:
----------------
Bug should not occur.

Actual result:
--------------
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP Fatal error:  date() [<a href='function.date'>function.date</a>]: Timezone database is corrupt - this should *never* happen! in D:\\mediawiki\\w\\includes\\Parser.php on line 2458
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP Stack trace:
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP   1. {main}() D:\\mediawiki\\w\\index.php:0
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP   2. MediaWiki->initialize() D:\\mediawiki\\w\\index.php:89
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP   3. MediaWiki->initializeSpecialCases() D:\\mediawiki\\w\\includes\\Wiki.php:45
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP   4. SpecialPage::executePath() D:\\mediawiki\\w\\includes\\Wiki.php:201
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP   5. SpecialPage->execute() D:\\mediawiki\\w\\includes\\SpecialPage.php:459
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP   6. SpecialPage->setHeaders() D:\\mediawiki\\w\\includes\\SpecialPage.php:640
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP   7. OutputPage->setPageTitle() D:\\mediawiki\\w\\includes\\SpecialPage.php:628
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP   8. wfMsg() D:\\mediawiki\\w\\includes\\OutputPage.php:220
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP   9. wfMsgReal() D:\\mediawiki\\w\\includes\\GlobalFunctions.php:326
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP  10. wfMsgGetKey() D:\\mediawiki\\w\\includes\\GlobalFunctions.php:421
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP  11. MessageCache->get() D:\\mediawiki\\w\\includes\\GlobalFunctions.php:467
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP  12. MessageCache->transform() D:\\mediawiki\\w\\includes\\MessageCache.php:505
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP  13. Parser->transformMsg() D:\\mediawiki\\w\\includes\\MessageCache.php:589
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP  14. Parser->replaceVariables() D:\\mediawiki\\w\\includes\\Parser.php:3967
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP  15. Parser->replace_callback() D:\\mediawiki\\w\\includes\\Parser.php:2860
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP  16. call_user_func() D:\\mediawiki\\w\\includes\\Parser.php:2759
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP  17. Parser->braceSubstitution() D:\\mediawiki\\w\\includes\\Parser.php:0
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP  18. Parser->variableSubstitution() D:\\mediawiki\\w\\includes\\Parser.php:2968
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP  19. Parser->getVariableValue() D:\\mediawiki\\w\\includes\\Parser.php:2892
[Thu Oct 04 10:57:46 2007] [error] [client 10.95.36.96] PHP  20. date() D:\\mediawiki\\w\\includes\\Parser.php:2458

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-02 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-12-17 08:02 UTC] muadib at propeler dot net
Issue also appears in version:
PHP 5.2.6-1+lenny3 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 26 2009 22:16:23)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

At the moment I cannot reproduce the issue as it happens at random ( or so it may seem atm ). The script which produces the issue runs constantly under a heavy load ( executes ~25 CURL request per second, burning 5 MBit of bandwidth ).

Any who, I'll post a detailed log next time it happens.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 11:01:28 2024 UTC