From 7e4c15261dc123c1774327a8f9eaf5c4e673df5d Mon Sep 17 00:00:00 2001 From: William DURAND Date: Tue, 30 Aug 2011 16:11:34 +0200 Subject: [PATCH] Fixed the way we detect errors in a Phing process --- Command/PhingCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command/PhingCommand.php b/Command/PhingCommand.php index ab84a6f..6cc60db 100644 --- a/Command/PhingCommand.php +++ b/Command/PhingCommand.php @@ -110,7 +110,7 @@ abstract class PhingCommand extends ContainerAwareCommand $this->buffer = ob_get_contents(); // Guess errors - $returnStatus = (false !== preg_match('#failed. Aborting.#', $this->buffer)); + $returnStatus = (false === strstr($this->buffer, 'failed. Aborting.')); } catch(\Exception $e) { $returnStatus = false; }