From f2b67a9e76e5e17724aecd6a86cee224852dc877 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 28 Nov 2012 13:22:17 +0000 Subject: prevent excessive runtime --- it_debug.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3