Index: PhpLintTask.php
===================================================================
--- PhpLintTask.php	(revision 688)
+++ PhpLintTask.php	(working copy)
@@ -197,8 +197,9 @@
                 }
                 
                 $messages = array();
-                exec($command.'"'.$file.'"', $messages);
-                if(!preg_match('/^No syntax errors detected/', $messages[0])) {
+		$retVal = null;
+                exec($command.'"'.$file.'"', $messages, $retVal);
+                if($retVal == -1) {
                     if (count($messages) > 1) {
                         if ($this->errorProperty) {
                             $this->project->setProperty($this->errorProperty, $messages[1]);

