From df7ed4032ec527b2212e5259946282b8e141a7b6 Mon Sep 17 00:00:00 2001 From: Christian Kuhn <lolli@schwarzbu.ch> Date: Sun, 3 Dec 2017 15:05:53 +0100 Subject: [PATCH] [BUGFIX] Use of undefined constant E_DEBUG Global function debug() initializes its 6th argument to constant E_DEBUG which does not exist and then defaults to string 'E_DEBUG'. This raises a PHP 7.2 warning. Relevant for v8 & v7 only, this argument has been removed in master already. Fix by defaulting to string 'E_DEBUG' in method signature. Change-Id: If04c9e55bb810980b19b924496680ea1758e4b24 Resolves: #83200 Related: #82640 Releases: 8.7, 7.6 Reviewed-on: https://review.typo3.org/54915 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Tested-by: Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> --- typo3/sysext/core/Resources/PHP/GlobalDebugFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/core/Resources/PHP/GlobalDebugFunctions.php b/typo3/sysext/core/Resources/PHP/GlobalDebugFunctions.php index a50802e93b71..b073444a9767 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 -- GitLab