From b5bb2fe9e49fca040536ab4bf5dc48706d31300d Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 2 Jul 2013 13:29:49 +0000 Subject: Remove generator magic as generators can only be traversed once. Use EDX(iterator_to_array($generator)) if you want to see content of generator --- it_debug.class | 6 ------ 1 file changed, 6 deletions(-) diff --git a/it_debug.class b/it_debug.class index 359d703..4c5af95 100644 --- a/it_debug.class +++ b/it_debug.class @@ -122,12 +122,6 @@ static function dump($args) foreach ($args as $arg) { $var = array_shift($argnames); - if (is_a($arg, 'generator')) { - $origarg = $arg; - $arg = array(); - foreach ($origarg as $a) - $arg[] = $a; - } $item = gettype($arg) == 'resource' || is_array($arg) && isset($arg['GLOBALS']) || is_object($arg) && is_a($arg, "SimpleXMLElement") ? trim(print_r($arg, true)) : trim(var_export($arg, true)); # Replace PHP 5 var_export object representation by old style -- cgit v1.2.3