(bug 37194) remove obsoletes *.deps.php

PHP had a nasty bug related to late/early binding and referenced at
https://bugs.php.net/bug.php?id=56776 . The workaround was to add some
.deps.php files to make sure code is loaded early.

Upstream PHP issue #56778 was fixed in PHP 5.1.

See also:
http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html

Change-Id: I4c85f65c6b5f3df3218bb107881547d44f0cf107
This commit is contained in:
Antoine Musso 2012-05-29 14:05:03 +02:00
parent 1a1d50892f
commit 0ec77e2b31
14 changed files with 0 additions and 135 deletions

View file

@ -164,11 +164,6 @@ abstract class Skin extends ContextSource {
if ( !MWInit::classExists( $className ) ) {
if ( !defined( 'MW_COMPILED' ) ) {
// Preload base classes to work around APC/PHP5 bug
$deps = "{$wgStyleDirectory}/{$skinName}.deps.php";
if ( file_exists( $deps ) ) {
include_once( $deps );
}
require_once( "{$wgStyleDirectory}/{$skinName}.php" );
}

View file

@ -284,10 +284,6 @@ class Language {
}
if ( !defined( 'MW_COMPILED' ) ) {
// Preload base classes to work around APC/PHP5 bug
if ( file_exists( "$IP/languages/classes/$class.deps.php" ) ) {
include_once( "$IP/languages/classes/$class.deps.php" );
}
if ( file_exists( "$IP/languages/classes/$class.php" ) ) {
include_once( "$IP/languages/classes/$class.php" );
}

View file

@ -1,8 +0,0 @@
<?php
// This file exists to ensure that base classes are preloaded before
// LanguageIu.php is compiled, working around a bug in the APC opcode
// cache on PHP 5, where cached code can break if the include order
// changed on a subsequent page view.
// see http://mail.wikipedia.org/pipermail/wikitech-l/2006-January/033660.html
require_once( dirname(__FILE__).'/../LanguageConverter.php' );

View file

@ -1,9 +0,0 @@
<?php
// This file exists to ensure that base classes are preloaded before
// LanguageKk.php is compiled, working around a bug in the APC opcode
// cache on PHP 5, where cached code can break if the include order
// changed on a subsequent page view.
// see http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html
require_once( dirname( __FILE__ ) . '/../LanguageConverter.php' );
require_once( dirname( __FILE__ ) . '/LanguageKk_cyrl.php' );

View file

@ -1,9 +0,0 @@
<?php
// This file exists to ensure that base classes are preloaded before
// LanguageKu.php is compiled, working around a bug in the APC opcode
// cache on PHP 5, where cached code can break if the include order
// changed on a subsequent page view.
// see http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html
require_once( dirname( __FILE__ ) . '/../LanguageConverter.php' );
require_once( dirname( __FILE__ ) . '/LanguageKu_ku.php' );

View file

@ -1,8 +0,0 @@
<?php
// This file exists to ensure that base classes are preloaded before
// LanguageIu.php is compiled, working around a bug in the APC opcode
// cache on PHP 5, where cached code can break if the include order
// changed on a subsequent page view.
// see http://mail.wikipedia.org/pipermail/wikitech-l/2006-January/033660.html
require_once( dirname(__FILE__).'/../LanguageConverter.php' );

View file

@ -1,9 +0,0 @@
<?php
// This file exists to ensure that base classes are preloaded before
// LanguageSr.php is compiled, working around a bug in the APC opcode
// cache on PHP 5, where cached code can break if the include order
// changed on a subsequent page view.
// see http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html
require_once( dirname( __FILE__ ) . '/LanguageSr_ec.php' );
require_once( dirname( __FILE__ ) . '/../LanguageConverter.php' );

View file

@ -1,9 +0,0 @@
<?php
// This file exists to ensure that base classes are preloaded before
// LanguageZh.php is compiled, working around a bug in the APC opcode
// cache on PHP 5, where cached code can break if the include order
// changed on a subsequent page view.
// see http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html
require_once( dirname( __FILE__ ) . '/LanguageZh_hans.php' );
require_once( dirname( __FILE__ ) . '/../LanguageConverter.php' );

View file

@ -1,13 +0,0 @@
<?php
// This file exists to ensure that base classes are preloaded before
// Chick.php is compiled, working around a bug in the APC opcode
// cache on PHP 5, where cached code can break if the include order
// changed on a subsequent page view.
// see http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html
if ( ! defined( 'MEDIAWIKI' ) )
die( 1 );
require_once( dirname( dirname( __FILE__ ) ) . '/includes/SkinTemplate.php');
require_once( dirname(__FILE__) . '/MonoBook.php' );

View file

@ -1,12 +0,0 @@
<?php
// This file exists to ensure that base classes are preloaded before
// Modern.php is compiled, working around a bug in the APC opcode
// cache on PHP 5, where cached code can break if the include order
// changed on a subsequent page view.
// see http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html
if ( ! defined( 'MEDIAWIKI' ) )
die( 1 );
require_once( dirname( dirname( __FILE__ ) ) . '/includes/SkinTemplate.php' );

View file

@ -1,12 +0,0 @@
<?php
// This file exists to ensure that base classes are preloaded before
// MonoBook.php is compiled, working around a bug in the APC opcode
// cache on PHP 5, where cached code can break if the include order
// changed on a subsequent page view.
// see http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html
if ( ! defined( 'MEDIAWIKI' ) )
die( 1 );
require_once( dirname( dirname( __FILE__ ) ) . '/includes/SkinTemplate.php');

View file

@ -1,13 +0,0 @@
<?php
// This file exists to ensure that base classes are preloaded before
// MySkin.php is compiled, working around a bug in the APC opcode
// cache on PHP 5, where cached code can break if the include order
// changed on a subsequent page view.
// see http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html
if ( ! defined( 'MEDIAWIKI' ) )
die( 1 );
require_once( dirname( dirname( __FILE__ ) ) . '/includes/SkinTemplate.php');
require_once( dirname(__FILE__) . '/MonoBook.php' );

View file

@ -1,13 +0,0 @@
<?php
// This file exists to ensure that base classes are preloaded before
// Simple.php is compiled, working around a bug in the APC opcode
// cache on PHP 5, where cached code can break if the include order
// changed on a subsequent page view.
// see http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html
if ( ! defined( 'MEDIAWIKI' ) )
die( 1 );
require_once( dirname( dirname( __FILE__ ) ) . '/includes/SkinTemplate.php');
require_once( dirname(__FILE__) . '/MonoBook.php' );

View file

@ -1,11 +0,0 @@
<?php
// This file exists to ensure that base classes are preloaded before
// MonoBook.php is compiled, working around a bug in the APC opcode
// cache on PHP 5, where cached code can break if the include order
// changed on a subsequent page view.
// see http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html
if ( ! defined( 'MEDIAWIKI' ) )
die( 1 );
require_once( dirname( dirname( __FILE__ ) ) . '/includes/SkinTemplate.php');