summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2013-07-02 13:29:49 +0000
committerChristian Schneider2013-07-02 13:29:49 +0000
commitb5bb2fe9e49fca040536ab4bf5dc48706d31300d (patch)
treef6af320f23913df4ea076467fbf89b4e3742c6db
parentdbae2e6a3c1cde25e7f83079ca5a284ddeb29c56 (diff)
downloaditools-b5bb2fe9e49fca040536ab4bf5dc48706d31300d.tar.gz
itools-b5bb2fe9e49fca040536ab4bf5dc48706d31300d.tar.bz2
itools-b5bb2fe9e49fca040536ab4bf5dc48706d31300d.zip
Remove generator magic as generators can only be traversed once. Use EDX(iterator_to_array($generator)) if you want to see content of generator
-rw-r--r--it_debug.class6
1 files changed, 0 insertions, 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