- bugfix use catch Exception instead UnexpectedValueException in

clearCompiledTemplate to be PHP 5.2 compatible

- fixed PHPunit ClearCompiledTests to run also under Windows
This commit is contained in:
uwe.tews@googlemail.com
2011-10-22 16:47:35 +00:00
parent 1edb2220c7
commit 20a14579ce
2 changed files with 27 additions and 22 deletions

View File

@@ -1,6 +1,10 @@
===== trunk =====
22.10.2011
- bugfix smarty_mb_from_unicode() would not decode unicode-points properly
- bugfix use catch Exception instead UnexpectedValueException in
clearCompiledTemplate to be PHP 5.2 compatible
- bugfix use catch Exception instead UnexpectedValueException in
clearCompiledTemplate to be PHP 5.2 compatible
21.10.2011
- bugfix apostrophe in plugins_dir path name failed (forum topic 20199)

View File

@@ -225,7 +225,8 @@ class Smarty_Internal_Utility {
$_count = 0;
try {
$_compileDirs = new RecursiveDirectoryIterator($_dir);
} catch (UnexpectedValueException $e) {
// NOTE: UnexpectedValueException thrown for PHP >= 5.3
} catch (Exception $e) {
return 0;
}
$_compile = new RecursiveIteratorIterator($_compileDirs, RecursiveIteratorIterator::CHILD_FIRST);