Fixed bug #11176: LogicException is thrown if spl_autoload() fails with PHP 5.2.0
authorOliver Hader <oliver.hader@typo3.org>
Sun, 31 May 2009 12:51:07 +0000 (12:51 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Sun, 31 May 2009 12:51:07 +0000 (12:51 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5518 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_autoloader.php

index 2a3415f..96135ab 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-31  Oliver Hader  <oliver@typo3.org>
+
+       * Fixed bug #11176: LogicException is thrown if spl_autoload() fails with PHP 5.2.0
+
 2009-05-31  Christian Kuhn  <lolli@schwarzbu.ch>
 
        * Fixed bug #11218: Typo in typo3/init.php
index 3396b96..175dec8 100644 (file)
@@ -106,7 +106,10 @@ class t3lib_autoloader {
                if ($classPath && file_exists($classPath)) {
                        t3lib_div::requireFile($classPath);
                } else {
-                       spl_autoload($className);
+                       try {
+                               spl_autoload($className);
+                       } catch (LogicException $exception) {
+                       }
                }
 
                if (!class_exists($className, false)) {