summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2015-06-18 18:13:33 +0200
committerUrban Müller2015-06-18 18:13:33 +0200
commiteec0eebe7ef48b1f72de62c70ddeb70f0f1d783c (patch)
tree6494f6ced05014765eef6291696817da2908de28
parent22e572aed1a5d56c546fceb72ffaae0f35b52e3d (diff)
downloaditools-eec0eebe7ef48b1f72de62c70ddeb70f0f1d783c.tar.gz
itools-eec0eebe7ef48b1f72de62c70ddeb70f0f1d783c.tar.bz2
itools-eec0eebe7ef48b1f72de62c70ddeb70f0f1d783c.zip
ignore warnings when used in php -r
-rw-r--r--it_debug.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_debug.class b/it_debug.class
index 694d08a..6aab9eb 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -62,7 +62,7 @@ static function srcline($stackoffs = 0)
$file = $stack[1 + $stackoffs]['file'];
if (!isset($GLOBALS['it_debug::dump source'][$file]))
- $GLOBALS['it_debug::dump source'][$file] = file($file);
+ $GLOBALS['it_debug::dump source'][$file] = @file($file);
return $GLOBALS['it_debug::dump source'][$file][$line-1];
}