[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 15:07:58 +0000 (16:07 +0100)
commit40af75fe38bf9cf5b5adf68023b19391d67cf82b
tree1a7004f03eda6f7152d42c71f081da23d46e40be
parent70a5331484b27fe0233aa63d0b278763a22ddc6f
[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: I12188324ad133752a0c0eb77c4905ed1854197b7
Resolves: #33116
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/8748
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/class.t3lib_autoloader.php
typo3/sysext/scheduler/mod1/index.php