[TYPO3-core] FYI24 Bug #11176: LogicException is thrown if spl_autoload() fails with PHP 5.2.0
Oliver Hader
oliver at typo3.org
Sun May 31 14:51:24 CEST 2009
FYI: Committed to SVN Trunk (rev. 5518)
olly
Oliver Hader schrieb:
> The following changes will be committed to SVN Trunk in 24 hours if
> nobody objects.
>
> Type: Bugfix
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=11176
> http://bugs.php.net/bug.php?id=39313
>
> Branch: Trunk
>
> Problem:
> With PHP 5.2.0 the spl_autoload() throws a LogicException if the
> accordant class name could not be found, e.g.:
> PHP Fatal error: Uncaught exception 'LogicException' with message 'Class
> ux_t3lib_DB could not be loaded'
>
> Solution:
> spl_autoload() is used as fallback but should fail silently if the class
> could not be loaded. This behaviour was changed with PHP 5.2.1 and does
> not throw the exception anymore since that version (see PHP bug above).
> However, to prevent this exception, the spl_autoload() fallback in the
> TYPO3 autoloader gets wrapped by try/catch.
>
> olly
--
Oliver Hader
TYPO3 Release Manager 4.3
More information about the TYPO3-team-core
mailing list