ErrorHandler: use var_export for dumping superglobals as well
This commit is contained in:
parent
2a528f2830
commit
a260f4ff88
@ -63,11 +63,11 @@ class ErrorHandler
|
|||||||
|
|
||||||
// Include info on the contents of superglobals.
|
// Include info on the contents of superglobals.
|
||||||
if (!empty($_SESSION))
|
if (!empty($_SESSION))
|
||||||
$debug_info .= "\nSESSION: " . print_r($_SESSION, true);
|
$debug_info .= "\nSESSION: " . var_export($_SESSION, true);
|
||||||
if (!empty($_POST))
|
if (!empty($_POST))
|
||||||
$debug_info .= "\nPOST: " . print_r($_POST, true);
|
$debug_info .= "\nPOST: " . var_export($_POST, true);
|
||||||
if (!empty($_GET))
|
if (!empty($_GET))
|
||||||
$debug_info .= "\nGET: " . print_r($_GET, true);
|
$debug_info .= "\nGET: " . var_export($_GET, true);
|
||||||
|
|
||||||
return $debug_info;
|
return $debug_info;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user