From 96c2a7f12a13338ba1fd25a031a5201a49bf3a3b Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 26 Jun 2013 09:34:35 +0000 Subject: ignore unloadable files for #! check --- 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 7324192..4c5af95 100644 --- a/it_debug.class +++ b/it_debug.class @@ -183,7 +183,7 @@ static function backtrace($p = array()) { if (($fn = $call['file']) && !it::match($p['skipfiles'], $call['file'])) { - if (!it::match('\.class', $call['file']) && file_get_contents($call['file'], null, null, 0, 2) == "#!") + if (!it::match('\.class|\.html', $call['file']) && @file_get_contents($call['file'], null, null, 0, 2) == "#!") $call['line']++; # fix bug in php error line reporting $fn = (it::match('auto_prepend', $fn) ? basename(dirname(dirname($fn))) . "/" : "") . basename($fn); -- cgit v1.2.3