From 29a2ba51cb5cd3d274e02a219365b89697f9f15b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 27 May 2013 21:15:31 -0400 Subject: [PATCH] Fix format_debug_trace() for objects. --- framework/kernel.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/framework/kernel.php b/framework/kernel.php index c797b6c..c8b90f8 100755 --- a/framework/kernel.php +++ b/framework/kernel.php @@ -669,7 +669,7 @@ class ISSO $args = ''; $file = $step['file'] . ':' . $step['line']; $funct = (isset($step['class']) ? $step['class'] . '::' . $step['function'] : $step['function']); - + if (isset($step['args']) AND is_array($step['args'])) { // we need to do this so we don't get "Array to string conversion" notices @@ -679,13 +679,17 @@ class ISSO { $step['args']["$id"] = 'Array'; } + else if (is_object($arg)) + { + $step['args']["$id"] = get_class($arg); + } } $args = implode(', ', $step['args']); } - + $trace[] = "#$i $funct($args) called at [$file]"; } - + return $trace; } -- 2.43.5