﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
107	Impossible to use PHP inside tag definitions	micha.wotton@…		"It seems the ternary operator ('?') can be confused with the PHP closing tag ('?>') when embedding PHP code in the edited content. 

I have enabled the Protected code option for PHP, and for the most part the PHP is left alone. However, whenever I use the ternary operator to generate options within HTML tags, the next PHP closing tag is interpreted as closing the HTML tag. For example the code 

{{{
<input type=""radio"" name=""stype"" <?php echo ($i == 0) ? ("" on"") : ("""") ; ?> id=""stype<?php echo $i; ?>"" value=""<?php echo $subsDetail['type'] ; ?>"" />
}}}
becomes
{{{
<input type=""radio"" name=""stype"" value=""on"" /> id=&quot;stype<?=$i?>&quot; value=&quot;<?php echo $subsDetail['type'] ; ?>&quot; /&gt;
}}} 
after switching from the source.

This is not the end of the world as I can just use if/else statements instead, it is a pain however.
"	Bug	closed	Normal		General	FCKeditor 2.4	wontfix	CantFix	
