mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Try again at fixing errors in 5.2
This commit is contained in:
parent
c94a684be8
commit
b29cc6a9b6
1 changed files with 4 additions and 3 deletions
|
@ -542,10 +542,11 @@ class Debugger {
|
|||
|
||||
if ($depth >= 0) {
|
||||
foreach ($var as $key => $val) {
|
||||
if ($val != $var) {
|
||||
$val = self::_export($val, $depth, $indent);
|
||||
} else {
|
||||
// Sniff for globals as !== explodes in < 5.4
|
||||
if ($key === 'GLOBALS' && is_array($val) && isset($val['GLOBALS'])) {
|
||||
$val = '[recursion]';
|
||||
} else if ($val !== $var) {
|
||||
$val = self::_export($val, $depth, $indent);
|
||||
}
|
||||
$vars[] = $break . self::exportVar($key) .
|
||||
' => ' .
|
||||
|
|
Loading…
Add table
Reference in a new issue