ID:               42856
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php at blazemonger dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Date/time related
 Operating System: Windows 2003 Server x64
 PHP Version:      5.2.4
 New Comment:

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




Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to