diff options
author | Christian Schneider | 2011-09-05 15:19:25 +0000 |
---|---|---|
committer | Christian Schneider | 2011-09-05 15:19:25 +0000 |
commit | 142db4af568cfea910a91d3119c6ab5283da63b6 (patch) | |
tree | 811014514a792b1d1bb03cf732c2a4306ebcb297 /it_debug.class | |
parent | e869a83340f2e16028916cbeb39b831b6fabef5b (diff) | |
download | itools-142db4af568cfea910a91d3119c6ab5283da63b6.tar.gz itools-142db4af568cfea910a91d3119c6ab5283da63b6.tar.bz2 itools-142db4af568cfea910a91d3119c6ab5283da63b6.zip |
Fix PHP 5.3.8 problem with is_a() called with string as first argument
Diffstat (limited to 'it_debug.class')
-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 4a091d3..2ccf734 100644 --- a/it_debug.class +++ b/it_debug.class @@ -125,7 +125,7 @@ function dump($args) foreach ($args as $arg) { $var = array_shift($argnames); - $item = gettype($arg) == 'resource' || is_array($arg) && isset($arg['GLOBALS']) || is_a($arg, "SimpleXMLElement") ? trim(print_r($arg, true)) : trim(var_export($arg, true)); + $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)) |