Try again at fixing errors in 5.2

This commit is contained in:
mark_story 2012-08-08 23:09:44 -04:00
parent c94a684be8
commit b29cc6a9b6

View file

@ -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) .
' => ' .