diff --git a/typo3/sysext/core/Resources/PHP/GlobalDebugFunctions.php b/typo3/sysext/core/Resources/PHP/GlobalDebugFunctions.php
index a50802e93b71e6bae029e20f03f2df1bdfb92d99..b073444a97671b69fcba8d0d9cb6e2e80ac40344 100644
--- a/typo3/sysext/core/Resources/PHP/GlobalDebugFunctions.php
+++ b/typo3/sysext/core/Resources/PHP/GlobalDebugFunctions.php
@@ -11,7 +11,7 @@
     }
 
     // Debug function which calls $GLOBALS['error'] error handler if available
-    function debug($variable = '', $name = '*variable*', $line = '*line*', $file = '*file*', $recursiveDepth = 3, $debugLevel = E_DEBUG)
+    function debug($variable = '', $name = '*variable*', $line = '*line*', $file = '*file*', $recursiveDepth = 3, $debugLevel = 'E_DEBUG')
     {
         // If you wish to use the debug()-function, and it does not output something,
         // please edit the IP mask in TYPO3_CONF_VARS