Index: branches/5.3.x/core/kernel/utility/debugger.php =================================================================== diff -u -N -r16281 -r16395 --- branches/5.3.x/core/kernel/utility/debugger.php (.../debugger.php) (revision 16281) +++ branches/5.3.x/core/kernel/utility/debugger.php (.../debugger.php) (revision 16395) @@ -1,6 +1,6 @@ processObject($array, $tab_count); + return $this->processObject($p_array, $tab_count); break; + case 'resource': + return (string)$p_array . "\n"; + break; + default: // number or string - if ( strlen($array) > 200 ) { - $array = substr($array, 0, 50) . ' ...'; + if ( strlen($p_array) > 200 ) { + $p_array = substr($p_array, 0, 50) . ' ...'; } - return $array . "\n"; + + return $p_array . "\n"; break; } } $output = ''; + if ( count($p_array) > 50 ) { + $array = array_slice($p_array, 0, 50); + $array[] = '...'; + } + else { + $array = $p_array; + } + $tab_count++; $output .= "Array\n" . str_repeat(' ', $tab_count) . "(\n";