dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d0622b
)
Partial revert of r85236: __autoload() is needed for HipHop interpreted mode support.
author
Tim Starling
<tstarling@users.mediawiki.org>
Mon, 4 Apr 2011 01:12:22 +0000
(
01:12
+0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Mon, 4 Apr 2011 01:12:22 +0000
(
01:12
+0000)
includes/AutoLoader.php
patch
|
blob
|
history
diff --git
a/includes/AutoLoader.php
b/includes/AutoLoader.php
index
1ce8c49
..
a4c7ae5
100644
(file)
--- a/
includes/AutoLoader.php
+++ b/
includes/AutoLoader.php
@@
-837,4
+837,12
@@
class AutoLoader {
}
}
-spl_autoload_register( array( 'AutoLoader', 'autoload' ) );
+if ( function_exists( 'spl_autoload_register' ) ) {
+ spl_autoload_register( array( 'AutoLoader', 'autoload' ) );
+} else {
+ function __autoload( $class ) {
+ AutoLoader::autoload( $class );
+ }
+
+ ini_set( 'unserialize_callback_func', '__autoload' );
+}