diff options
author | Urban Müller | 2013-06-26 09:34:35 +0000 |
---|---|---|
committer | Urban Müller | 2013-06-26 09:34:35 +0000 |
commit | 96c2a7f12a13338ba1fd25a031a5201a49bf3a3b (patch) | |
tree | a35c378b21496378193d7e957a23c79ba992e78c | |
parent | d2d5e5d6fb70fadd1cb5154327baa5c1010219c7 (diff) | |
download | itools-96c2a7f12a13338ba1fd25a031a5201a49bf3a3b.tar.gz itools-96c2a7f12a13338ba1fd25a031a5201a49bf3a3b.tar.bz2 itools-96c2a7f12a13338ba1fd25a031a5201a49bf3a3b.zip |
ignore unloadable files for #! check
-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 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); |