From b72bc0b257aee2e4d5fc0a350158eb2d3bb9d8a7 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 22 Aug 2013 08:25:36 +0200 Subject: [PATCH] [Locale] fixed build-data exit code in case of an error When passing a message to the exit() function, PHP returns 0 instead of an error code. --- src/Symfony/Component/Locale/Resources/data/build-data.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Locale/Resources/data/build-data.php b/src/Symfony/Component/Locale/Resources/data/build-data.php index 0382cb8d35..04fe30792a 100644 --- a/src/Symfony/Component/Locale/Resources/data/build-data.php +++ b/src/Symfony/Component/Locale/Resources/data/build-data.php @@ -11,7 +11,9 @@ function bailout($message) { - exit($message."\n"); + echo $message."\n"; + + exit(1); } function check_dir($source)