php7mar icon indicating copy to clipboard operation
php7mar copied to clipboard

Undefined index: line … in Scanner

Open franz-josef-kaiser opened this issue 8 years ago • 0 comments

When the file can not be accessed (broken symlink, etc.), there will be a warning.

PHP Warning:  file(/home/user/project/some-file.php): failed to open stream: No such file or directory in /home/user/php7mar/classes/scanner.php on line 101
PHP Notice:  Undefined index: line in /home/user/php7mar/mar.php on line 126

There should be a check for the actual and current value.

franz-josef-kaiser avatar Aug 25 '17 13:08 franz-josef-kaiser