Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | /** |
18 | 18 | * Compatibility functions |
19 | 19 | * |
20 | | - * We support PHP 5.1.x and up. |
| 20 | + * We support PHP 5.2.3 and up. |
21 | 21 | * Re-implementations of newer functions or functions in non-standard |
22 | 22 | * PHP extensions may be included here. |
23 | 23 | */ |
Index: trunk/phase3/includes/Hooks.php |
— | — | @@ -203,8 +203,6 @@ |
204 | 204 | } elseif ( isset( $object ) ) { |
205 | 205 | $func = get_class( $object ) . '::' . $method; |
206 | 206 | $callback = array( $object, $method ); |
207 | | - } elseif ( false !== ( $pos = strpos( $func, '::' ) ) ) { |
208 | | - $callback = array( substr( $func, 0, $pos ), substr( $func, $pos + 2 ) ); |
209 | 207 | } else { |
210 | 208 | $callback = $func; |
211 | 209 | } |
Index: trunk/phase3/includes/AutoLoader.php |
— | — | @@ -835,12 +835,4 @@ |
836 | 836 | } |
837 | 837 | } |
838 | 838 | |
839 | | -if ( function_exists( 'spl_autoload_register' ) ) { |
840 | | - spl_autoload_register( array( 'AutoLoader', 'autoload' ) ); |
841 | | -} else { |
842 | | - function __autoload( $class ) { |
843 | | - AutoLoader::autoload( $class ); |
844 | | - } |
845 | | - |
846 | | - ini_set( 'unserialize_callback_func', '__autoload' ); |
847 | | -} |
| 839 | +spl_autoload_register( array( 'AutoLoader', 'autoload' ) ); |