From 4e878df2f525d032b2f22e33d090cb07fc207042 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Sun, 4 Nov 2007 17:33:50 +0000 Subject: enable dumping of class vars --- it_debug.class | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3