<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -22,17 +22,24 @@ function LintPHPFile()
             if filereadable(testFile)
                 let phpLint = system('php -l ' . testFile)
                 let phpLint = substitute(phpLint, testFile, thisFile, &quot;g&quot;)
-                
+
                 let errLine = matchstr(phpLint, 'No syntax errors')
                 if strlen(errLine) &gt; 0
                     cclose
                     redraw &quot; Avoids the annoying 'Press ENTER to BLAH' message
                 else
                     let lintLines = split(phpLint, &quot;\n&quot;)
-                    let lintLines = lintLines[0:-2] &quot; The last line is garbage
+
+                    let errorLines = []
+                    for line in lintLines
+                        let pos = matchstr(line, 'on line')
+                        if strlen(pos) &gt; 0 &amp;&amp; stridx(line, 'PHP') != 0 &quot; Some versions dupe the error
+                            call add(errorLines, line)
+                        endif
+                    endfor
 
                     let cFile = tempname()
-                    exe writefile(lintLines, cFile)
+                    exe writefile(errorLines, cFile)
 
                     set errorformat=%m\ in\ %f\ on\ line\ %l
                     exe &quot;cfile &quot; . cFile</diff>
      <filename>phplint.vim</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b2faefc20190d1cfab00ca1afc03201944ca474d</id>
    </parent>
  </parents>
  <author>
    <name>Jonty</name>
    <email>jonty@jonty.co.uk</email>
  </author>
  <url>http://github.com/Jonty/phplint.vim/commit/aa38316ff1103141e3ca47b5b8870f002c5bba4d</url>
  <id>aa38316ff1103141e3ca47b5b8870f002c5bba4d</id>
  <committed-date>2009-10-28T05:01:26-07:00</committed-date>
  <authored-date>2009-10-28T05:01:26-07:00</authored-date>
  <message>Some minor versions of PHP have crazy lint output, so filter it for known good lines rather than stabbing in the dark.</message>
  <tree>4a5f9e8fed31c11b262598f1c6a2bcf8a366b492</tree>
  <committer>
    <name>Jonty</name>
    <email>jonty@jonty.co.uk</email>
  </committer>
</commit>
