mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-03 19:30:49 +02:00
- avoid possible circular object referances caused by parser/lexer objects
This commit is contained in:
@@ -17,13 +17,6 @@
|
||||
abstract class Smarty_Internal_ParseTree
|
||||
{
|
||||
|
||||
/**
|
||||
* Parser object
|
||||
*
|
||||
* @var object
|
||||
*/
|
||||
public $parser;
|
||||
|
||||
/**
|
||||
* Buffer content
|
||||
*
|
||||
@@ -41,9 +34,21 @@ abstract class Smarty_Internal_ParseTree
|
||||
/**
|
||||
* Return buffer
|
||||
*
|
||||
* @param \Smarty_Internal_Templateparser $parser
|
||||
*
|
||||
* @return string buffer content
|
||||
*/
|
||||
abstract public function to_smarty_php();
|
||||
abstract public function to_smarty_php(Smarty_Internal_Templateparser $parser);
|
||||
|
||||
/**
|
||||
* Template data object destructor
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
$this->data = null;
|
||||
$this->subtrees = null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user