diff --git a/change_log.txt b/change_log.txt index 112bd259..1c19c53b 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,7 @@ ===== 3.1.32 - dev === +17.03.2018 + - improvement Smarty::compileAllTemplates() exit with a non-zero status code if max errors is reached https://github.com/smarty-php/smarty/pull/402 + 16.03.2018 - bugfix extends resource did not work with user defined left/right delimiter https://github.com/smarty-php/smarty/issues/419 diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index c9b2bb66..c52c486e 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -112,7 +112,7 @@ class Smarty extends Smarty_Internal_TemplateBase /** * smarty version */ - const SMARTY_VERSION = '3.1.32-dev-39'; + const SMARTY_VERSION = '3.1.32-dev-40'; /** * define variable scopes */ diff --git a/libs/sysplugins/smarty_internal_method_compilealltemplates.php b/libs/sysplugins/smarty_internal_method_compilealltemplates.php index 99b9df46..64912599 100644 --- a/libs/sysplugins/smarty_internal_method_compilealltemplates.php +++ b/libs/sysplugins/smarty_internal_method_compilealltemplates.php @@ -115,7 +115,7 @@ class Smarty_Internal_Method_CompileAllTemplates $_smarty->_clearTemplateCache(); if ($max_errors !== null && $_error_count === $max_errors) { echo "\n

too many errors\n"; - exit(); + exit(1); } } }