[BUGFIX] Scheduler BE module fails to load due to autoloader issues
authorDmitry Dulepov <dmitry@typo3.org>
Wed, 11 Jan 2012 12:15:00 +0000 (14:15 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 28 Jan 2012 14:36:44 +0000 (15:36 +0100)
commitd3e77251014a8f269632dd93411980a199202ca3
tree7f11023929c929c19b743bf829bc6636e234a17d
parentbfda58caaa923fe73656fa5febc641486b7dbeec
[BUGFIX] Scheduler BE module fails to load due to autoloader issues

When displaying a list of tasks, scheduler unserializes exceptions.
By default, unserialize() does not call autoloader to load classes
and it is possible that the exception class will not be loaded. In
such case scheduler BE module will fail with a PHP fatal error
when the scheduler will try to use a _PHP_Incomplete_Class.

The fix makes sure that autoloader is called during unserialize().
However this still may fail, so the scheduler now checks that the
exception is loaded properly before trying to use it.

Change-Id: I77ef3bf765019ab7ceb5bc45049d14b22db6f701
Resolves: #33116
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/7736
Reviewed-by: Philipp Gampe
Reviewed-by: Andy Grunwald
Reviewed-by: Steffen Ritter
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/class.t3lib_autoloader.php
typo3/sysext/scheduler/class.tx_scheduler_module.php