Revert "[BUGFIX] Scheduler BE module fails to load due to autoloader issues"
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 28 Jan 2012 19:19:50 +0000 (20:19 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 28 Jan 2012 19:22:35 +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 4ec102ae52878f8494780f8af7fd86e976d24bde

Change-Id: I26480df01c656ba517e053d73f9d4748d42653da
Reviewed-on: http://review.typo3.org/8753
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/class.t3lib_autoloader.php
typo3/sysext/scheduler/class.tx_scheduler_module.php

index 80fdbb0..ab41c11 100644 (file)
@@ -67,7 +67,6 @@ class t3lib_autoloader {
         */
        public static function registerAutoloader() {
                self::loadCoreAndExtensionRegistry();
-               @ini_set('unserialize_callback_func', 'spl_autoload_call');
                return spl_autoload_register('t3lib_autoloader::autoload', TRUE, TRUE);
        }
 
index 6818bdf..7d0ef75 100644 (file)
@@ -1134,7 +1134,7 @@ class tx_scheduler_Module extends t3lib_SCbase {
                                                        /** @var $exception Exception */
                                                $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());