mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-20 08:29:55 +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) {
|
if ($depth >= 0) {
|
||||||
foreach ($var as $key => $val) {
|
foreach ($var as $key => $val) {
|
||||||
if ($val != $var) {
|
// Sniff for globals as !== explodes in < 5.4
|
||||||
$val = self::_export($val, $depth, $indent);
|
if ($key === 'GLOBALS' && is_array($val) && isset($val['GLOBALS'])) {
|
||||||
} else {
|
|
||||||
$val = '[recursion]';
|
$val = '[recursion]';
|
||||||
|
} else if ($val !== $var) {
|
||||||
|
$val = self::_export($val, $depth, $indent);
|
||||||
}
|
}
|
||||||
$vars[] = $break . self::exportVar($key) .
|
$vars[] = $break . self::exportVar($key) .
|
||||||
' => ' .
|
' => ' .
|
||||||
|
|
Loading…
Add table
Reference in a new issue