mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- 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:
@@ -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)
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user