From eec0eebe7ef48b1f72de62c70ddeb70f0f1d783c Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 18 Jun 2015 18:13:33 +0200 Subject: ignore warnings when used in php -r --- it_debug.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_debug.class') 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]; } -- cgit v1.2.3