Author: aoyagi
Description:
XAMPP Apache server crashes when I set $wgLocalTZoffset to 540. I found a bug in
Language.php. See below.
$ diff -c languages/Language.php languages/Language.php.org
- languages/Language.php Wed Feb 28 09:48:57 2007
- languages/Language.php.org Wed Feb 21 11:20:42 2007 ***
- 394,401 **** if ( $tz === '' ) { #ツGlobal offset in minutes. if( isset($wgLocalTZoffset) ) {
! $hrDiff = $wgLocalTZoffset / 60;
! $minDiff = $wgLocalTZoffset % 60;
} } elseif ( strpos( $tz, ':' ) !== false ) { $tzArray = explode( ':', $tz );
- 394,401 ---- if ( $tz === '' ) { #ツGlobal offset in minutes. if( isset($wgLocalTZoffset) ) {
! $hrDiff = $wgLocalTZoffset % 60;
! $minDiff = $wgLocalTZoffset - ($hrDiff * 60);
} } elseif ( strpos( $tz, ':' ) !== false ) { $tzArray = explode( ':', $tz );
Version: 1.9.x
Severity: normal
OS: Windows XP
Platform: PC