Skip to content
Snippets Groups Projects
Commit df7ed403 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[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: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 92b586c6
Branches
Tags
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment