well, even after deleting the spam out of the start of your text file, to try to figure out where line 1161 was, there's no T_CASE near line 1161, and the case before and after it both seem fine at a glance - Any chance you can provide the source code 'as is' - without any extra junk in it, so we can establish exactly what line it goes bad on? if not, then take a look around like 530 (not sure exactly) where you have:
case '/strip':
if (substr($tag_command, 0, 1)=='/') {
$this->_pop_tag('strip');
if (--$this->_strip_depth==0) { /* outermost closing {/strip} */
$this->_additional_newline = "\n";
return '{' . $tag_command . '}';
}
/**
} else {
$this->_push_tag('strip');
if ($this->_strip_depth++==0) { /* outermost opening {strip} */
$this->_additional_newline = "";
return '{' . $tag_command . '}';
}
}
return '';
looks like your commented out section missed commenting the close brace, or something.