diff --git a/linter.py b/linter.py index 45951f4..79750d3 100644 --- a/linter.py +++ b/linter.py @@ -21,7 +21,6 @@ class PHP(Linter): r'^(?:Parse|Fatal) (?Perror):(\s*(?Pparse|syntax) error,?)?\s*' r'(?P(?:unexpected \'(?P[^\']+)\')?.*) (?:in - )?on line (?P\d+)' ) - executable = 'php' error_stream = util.STREAM_STDOUT def split_match(self, match): @@ -41,7 +40,7 @@ def cmd(self): if 'cmd' in settings: command = [settings.get('cmd')] else: - command = [self.executable_path] + command = ['php'] command.append('-l') command.append('-n')