When i activate TemplateCompile in the site.ini.append.php the compiled PHP-files contains an error. After what i have gathered the issue seems to be as follows:
in /lib/eztemplate/classes/eztemplatecompiler.php::generatePHPCodeChildren there is a line that looks like this:
This line uses $variableNameText that is created at this line in the same funciton:
$php->thisVariableText returns a value with doublequotes. So if a $variableName initially was `myVariableName` it returns `"myVariableName"`.
As you might understand, the generatePHPCodeChildren will fail as the quoting is wrong. In "human readable" version it results in a string like this in the compiled PHP-file:
$tpl->warning( 'def', "Variable "template" is already defined." );