summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_debug.class3
1 files changed, 3 insertions, 0 deletions
diff --git a/it_debug.class b/it_debug.class
index 3aedda7..6fcc34a 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -128,6 +128,9 @@ function dump($args)
foreach ($args as $arg)
{
$var = array_shift($argnames);
+ if (gettype($arg) == "string" && class_exists($arg))
+ $arg = get_class_vars($arg);
+
$item = gettype($arg) == 'resource' ? trim(print_r($arg, true)) : trim(var_export($arg, true));
# Replace PHP 5 var_export object representation by old style