Commit e3d1e238 authored by bcosca's avatar bcosca
Browse files

Ensure no prior autoloaders in stack

parent 79b5c3b1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1570,6 +1570,9 @@ final class Base {
				array($error));
		date_default_timezone_set($this->hive['TZ']);
		// Register framework autoloader
		if ($funcs=spl_autoload_functions())
			foreach ($funcs as $func)
				spl_autoload_unregister($func);
		spl_autoload_register(array($this,'autoload'));
		// Register shutdown handler
		register_shutdown_function(array($this,'unload'));