From:             php at blazemonger dot com
Operating system: Windows 2003 Server x64
PHP version:      5.2.4
PHP Bug Type:     Reproducible crash
Bug description:  Timezone database is corrupt

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 bug report at http://bugs.php.net/?id=42856&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42856&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42856&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42856&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42856&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42856&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42856&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42856&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42856&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42856&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42856&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42856&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42856&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42856&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42856&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42856&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42856&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42856&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42856&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42856&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42856&r=mysqlcfg

Reply via email to