r85304 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85303‎ | r85304 | r85305 >
Date:01:12, 4 April 2011
Author:tstarling
Status:ok
Tags:
Comment:
Partial revert of r85236: __autoload() is needed for HipHop interpreted mode support.
Modified paths:
  • /trunk/phase3/includes/AutoLoader.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/AutoLoader.php
@@ -837,4 +837,12 @@
838838 }
839839 }
840840
841 -spl_autoload_register( array( 'AutoLoader', 'autoload' ) );
 841+if ( function_exists( 'spl_autoload_register' ) ) {
 842+ spl_autoload_register( array( 'AutoLoader', 'autoload' ) );
 843+} else {
 844+ function __autoload( $class ) {
 845+ AutoLoader::autoload( $class );
 846+ }
 847+
 848+ ini_set( 'unserialize_callback_func', '__autoload' );
 849+}

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r85236* Drop 5.1 compat code...ialex09:44, 3 April 2011

Status & tagging log