diff options
author | Urban Müller | 2007-11-04 17:33:50 +0000 |
---|---|---|
committer | Urban Müller | 2007-11-04 17:33:50 +0000 |
commit | 4e878df2f525d032b2f22e33d090cb07fc207042 (patch) | |
tree | dd8e0b88e18fcedc244c39d290c2542d304769a1 /it_debug.class | |
parent | 9b0f1fe9941e4636253bb9bb77f33b5b759af29b (diff) | |
download | itools-4e878df2f525d032b2f22e33d090cb07fc207042.tar.gz itools-4e878df2f525d032b2f22e33d090cb07fc207042.tar.bz2 itools-4e878df2f525d032b2f22e33d090cb07fc207042.zip |
enable dumping of class vars
Diffstat (limited to 'it_debug.class')
-rw-r--r-- | it_debug.class | 3 |
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 |