diff options
author | Urban Müller | 2012-11-28 13:22:17 +0000 |
---|---|---|
committer | Urban Müller | 2012-11-28 13:22:17 +0000 |
commit | f2b67a9e76e5e17724aecd6a86cee224852dc877 (patch) | |
tree | e2dc4d651d9f3cc79e34d5eb24862e414a57c3e2 | |
parent | 562bbf7bc45f853b66aff5dfa8bf1bfcd5533d3a (diff) | |
download | itools-f2b67a9e76e5e17724aecd6a86cee224852dc877.tar.gz itools-f2b67a9e76e5e17724aecd6a86cee224852dc877.tar.bz2 itools-f2b67a9e76e5e17724aecd6a86cee224852dc877.zip |
prevent excessive runtime
-rw-r--r-- | it_debug.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_debug.class b/it_debug.class index 44bcdf8..4f38469 100644 --- a/it_debug.class +++ b/it_debug.class @@ -125,7 +125,7 @@ function dump($args) $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 - while (preg_match("#(.*\b)(\w+)::__set_state\(array\(([^()]+)\)\)(.*)#s", $item, $regs)) + while (preg_match("#(.*\b)(\w+)::__set_state\(array\(([^()]+)\)\)(.*)#s", $item, $regs) && ++$iterations < 100) { list (, $head, $classname, $values, $tail) = $regs; $classname = strtolower($classname); |