diff --git a/.travis.yml b/.travis.yml index fbf081ba..c7122915 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ language: php php: + - 5.2 - 5.3 - 5.4 - 5.5 diff --git a/change_log.txt b/change_log.txt index 5ad5f263..f2f77d95 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,7 +1,8 @@  ===== 3.1.29-dev ===== (xx.xx.2015) 19.12.2015 - bugfix using $smarty.capture.foo in expressions could fail https://github.com/smarty-php/smarty/pull/138 - + - bugfix broken PHP 5.2 compatibility + 18.12.2015 - bugfix regression when modifier parameter was follow by math https://github.com/smarty-php/smarty/issues/132 diff --git a/libs/sysplugins/smarty_internal_method_configload.php b/libs/sysplugins/smarty_internal_method_configload.php index ec023ec8..7b99e35c 100644 --- a/libs/sysplugins/smarty_internal_method_configload.php +++ b/libs/sysplugins/smarty_internal_method_configload.php @@ -162,7 +162,7 @@ class Smarty_Internal_Method_ConfigLoad * * @return mixed the value of the config variable */ - public function _getConfigVariable(\Smarty_Internal_Template $tpl, $varName, $errorEnable = true) + public function _getConfigVariable(Smarty_Internal_Template $tpl, $varName, $errorEnable = true) { $_ptr = $tpl; while ($_ptr !== null) { diff --git a/libs/sysplugins/smarty_internal_runtime_tplfunction.php b/libs/sysplugins/smarty_internal_runtime_tplfunction.php index cc529c63..634ed5dc 100644 --- a/libs/sysplugins/smarty_internal_runtime_tplfunction.php +++ b/libs/sysplugins/smarty_internal_runtime_tplfunction.php @@ -20,7 +20,7 @@ class Smarty_Internal_Runtime_TplFunction * * @throws \SmartyException */ - public function callTemplateFunction(\Smarty_Internal_Template $tpl, $name, $params, $nocache) + public function callTemplateFunction(Smarty_Internal_Template $tpl, $name, $params, $nocache) { if (isset($tpl->tpl_function[$name])) { if (!$tpl->caching || ($tpl->caching && $nocache)) { diff --git a/libs/sysplugins/smarty_internal_runtime_updatescope.php b/libs/sysplugins/smarty_internal_runtime_updatescope.php index 3d80c859..5a125a4a 100644 --- a/libs/sysplugins/smarty_internal_runtime_updatescope.php +++ b/libs/sysplugins/smarty_internal_runtime_updatescope.php @@ -17,7 +17,7 @@ class Smarty_Internal_Runtime_UpdateScope * @param string $varName variable name * @param int $scope scope to which bubble up variable value */ - public function updateScope(\Smarty_Internal_Template $tpl, $varName, $scope = Smarty::SCOPE_LOCAL) + public function updateScope(Smarty_Internal_Template $tpl, $varName, $scope = Smarty::SCOPE_LOCAL) { if (!$scope && !$tpl->scope) { return; diff --git a/libs/sysplugins/smarty_internal_runtime_var.php b/libs/sysplugins/smarty_internal_runtime_var.php index fe4f94d9..8e09108f 100644 --- a/libs/sysplugins/smarty_internal_runtime_var.php +++ b/libs/sysplugins/smarty_internal_runtime_var.php @@ -17,7 +17,7 @@ class Smarty_Internal_Runtime_Var * @param string $varName template variable name * @param bool $nocache cache mode of variable */ - public function createLocalArrayVariable(\Smarty_Internal_Template $tpl, $varName, $nocache = false) + public function createLocalArrayVariable(Smarty_Internal_Template $tpl, $varName, $nocache = false) { if (!isset($tpl->tpl_vars[$varName])) { $tpl->tpl_vars[$varName] = new Smarty_Variable(array(), $nocache);