#70: missing closing tag
Issue revisions
- new by zulin at 2010-M-03 15:28
- closed by Jordi Boggiano at 2011-A-09 20:46
| Type | |
|---|---|
| State | |
| Priority | |
| Resolution | |
| Assigned to | Nobody |
| Scheduled for | |
| Affected versions | 1.1.1 |
| Affected components | |
| Last change | Saturday 9 April 2011 20:46:15 UTC by Jordi Boggiano |
Short description
If I'm missing the closing tag for a block plugin i get no error
Environment
PHP 5.2 Linux Ubuntu
Steps to reproduce
- Just compile the TPL below: ---- TPL START ---- {foreach array(1,2,3) item}
-
{$item}</br>
---- TPL END ------
Expected behavior
Syntax Error
Actual behavior
1<br> 2<br> 3<br>
zulin at Monday 3 May 2010 15:30:40 UTC
the tpl to compile is this:
{$item}</br>
Jordi Boggiano at Saturday 8 May 2010 18:02:05 UTC
This is normal and expected, it might be fixable in 2.0 but for the moment fixing this would be a major BC break, and would mess up some plugins like {else} that rely on this behavior. In the meantime.. just try to be careful and indent your code to notice errors more easily :)
Jordi Boggiano at Saturday 9 April 2011 20:46:15 UTC
As said, it's by design, so I'm closing this.