--- this is a major update with a couple of internal changes ---

- new config file lexer/parser (thanks to Thue Jnaus Kristensen)
- template lexer/parser fixes for PHP and {literal} handing (thanks to Thue Jnaus Kristensen)
- fix on registered plugins with different type but same name
- rewrite of plugin handling (optimized execution speed)
- closed a security hole regarding PHP code injection into cache files
- fixed bug in clear cache handling
- Renamed a couple of internal classes
- code cleanup for merging compiled templates
- couple of runtime optimizations (still not all done)
This commit is contained in:
Uwe.Tews
2009-12-27 15:06:49 +00:00
parent 5f02276a2a
commit 44dd7830dd
45 changed files with 3015 additions and 2784 deletions
@@ -21,6 +21,9 @@ class Smarty_Internal_Resource_PHP {
$this->smarty = $smarty;
ini_set('short_open_tag', '1');
}
// properties
public $usesCompiler = false;
public $isEvaluated = false;
/**
* Return flag if template source is existing
@@ -80,27 +83,6 @@ class Smarty_Internal_Resource_PHP {
}
}
/**
* Return flag that this resource not use the compiler
*
* @return boolean false
*/
public function usesCompiler()
{
// does not use compiler, template is PHP
return false;
}
/**
* Return flag that this is not evaluated
*
* @return boolean false
*/
public function isEvaluated()
{
// does not use compiler, must be false
return false;
}
/**
* Get filepath to compiled template