#42856 [Com]: Timezone database is corrupt
ID: 42856
Comment by: muadib at propeler dot net
Reported By: php at blazemonger dot com
Status: No Feedback
Bug Type: Date/time related
Operating System: Windows 2003 Server x64
PHP Version: 5.2.4
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2007-11-02 01:00:01] 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".
------------------------------------------------------------------------
[2007-10-25 14:16:35] jani@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
------------------------------------------------------------------------
[2007-10-04 16:16:32] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42856&edit=1
Thread (3 messages)