ErrorHandler: use var_export for dumping superglobals as well

This commit is contained in:
Aaron van Geffen 2023-03-28 19:21:19 +02:00
parent 2a528f2830
commit a260f4ff88

View File

@ -63,11 +63,11 @@ class ErrorHandler
// Include info on the contents of superglobals.
if (!empty($_SESSION))
$debug_info .= "\nSESSION: " . print_r($_SESSION, true);
$debug_info .= "\nSESSION: " . var_export($_SESSION, true);
if (!empty($_POST))
$debug_info .= "\nPOST: " . print_r($_POST, true);
$debug_info .= "\nPOST: " . var_export($_POST, true);
if (!empty($_GET))
$debug_info .= "\nGET: " . print_r($_GET, true);
$debug_info .= "\nGET: " . var_export($_GET, true);
return $debug_info;
}