Revert "[BUGFIX] Scheduler BE module fails to load due to autoloader issues"
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 28 Jan 2012 19:21:07 +0000 (20:21 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 28 Jan 2012 19:22:14 +0000 (20:22 +0100)
The patch has an unwanted side-effect: It sometimes throws a php warning "Function spl_autoload_call() hasn't defined the class it was called for".
Reverted for now.

This reverts commit 33c8647966c919e2357701a4baaaef68738dfc91

Change-Id: If4cb4dc9e59dbdafe934d05c60bd92a14b55bde9
Reviewed-on: http://review.typo3.org/8755
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/class.t3lib_autoloader.php
typo3/sysext/scheduler/mod1/index.php

index 9bd6854..d9a7672 100644 (file)
@@ -75,7 +75,6 @@ class t3lib_autoloader {
        static public function registerAutoloader() {
                self::loadCoreRegistry();
                self::$extensionHasAutoloadConfiguration = array();
-               @ini_set('unserialize_callback_func', 'spl_autoload_call');
                return spl_autoload_register('t3lib_autoloader::autoload');
        }
 
index 1d96756..2b53678 100755 (executable)
@@ -1147,7 +1147,7 @@ class tx_scheduler_Module extends t3lib_SCbase {
                                                        // Try to get the stored exception object
                                                $exception = unserialize($schedulerRecord['lastexecution_failure']);
                                                        // If the exception could not be unserialized, issue a default error message
-                                               if ($exception === FALSE || ($exception instanceof __PHP_Incomplete_Class)) {
+                                               if ($exception === FALSE) {
                                                        $failureDetail = $GLOBALS['LANG']->getLL('msg.executionFailureDefault');
                                                } else {
                                                        $failureDetail = sprintf($GLOBALS['LANG']->getLL('msg.executionFailureReport'), $exception->getCode(), $exception->getMessage());