From: Antoine Musso Date: Tue, 29 May 2012 12:05:03 +0000 (+0200) Subject: (bug 37194) remove obsoletes *.deps.php X-Git-Tag: 1.31.0-rc.0~23458^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=0ec77e2b3196b931befedd1fb3605e4e6695c98d;p=lhc%2Fweb%2Fwiklou.git (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 --- diff --git a/includes/Skin.php b/includes/Skin.php index 64cf569796..56355bb0b8 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -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" ); } diff --git a/languages/Language.php b/languages/Language.php index 9f00d040b6..be9764e5ec 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -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" ); } diff --git a/languages/classes/LanguageIu.deps.php b/languages/classes/LanguageIu.deps.php deleted file mode 100644 index 3b78d8750e..0000000000 --- a/languages/classes/LanguageIu.deps.php +++ /dev/null @@ -1,8 +0,0 @@ -