Reserverd names may not be used as template variables in include send statement
Error:
Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '{' or '$' in ... on line 7
Template:
{include 'foo.tpl'
send 'hilighted' as $class}
Compiled:
<?php
// Generated PHP file from template code.
// If you modify this file your changes will be lost when it is regenerated.
$_ezcTemplate_output = "";
$_ezc_t = clone $this->template;
$_ezc_t -> send = new ezcTemplateVariableCollection();
$_ezc_t -> send -> class = "hilighted";
$_ezcTemplate_output .= $_ezc_t -> process("foo.tpl");
unset($_ezc_t);
$_ezcTemplate_output .= "";
return $_ezcTemplate_output;
?>
Possible solution for the line causing the parse error:
$_ezc_t -> send -> {'class'} = "hilighted";
Or just throw an exception on inproper names.