diff --git a/lib/Cake/Core/Configure.php b/lib/Cake/Core/Configure.php index b90fcfc6d..ad241254c 100644 --- a/lib/Cake/Core/Configure.php +++ b/lib/Cake/Core/Configure.php @@ -98,7 +98,12 @@ class Configure { self::$_values['Error'], self::$_values['Exception'] ); - unset($error, $exception); + + // Preload Debugger + String in case of E_STRICT errors when loading files. + if (self::$_values['debug'] > 0) { + class_exists('Debugger'); + class_exists('String'); + } } }