-
Bug
-
Resolution: Fixed
-
Major
-
3.1.0-dev
-
None
The following code:
<!-- DEFINE $FOO -->bar<!-- ENDDEFINE -->
|
when both DEFINE and ENDDEFINE are on same line will trigger error message.
If DEFINE and ENDDEFINE are on separate lines it works fine.
Sample error message:
Fatal error: Uncaught exception 'Twig_Error_Syntax' with message 'Unexpected token "operator" of value ">" in "overall_header.html" at line 40' in /vendor/twig/twig/lib/Twig/ExpressionParser.php:170
|
|
Stack trace:
|
#0 /vendor/twig/twig/lib/Twig/ExpressionParser.php(84): Twig_ExpressionParser->parsePrimaryExpression()
|
#1 /vendor/twig/twig/lib/Twig/ExpressionParser.php(41): Twig_ExpressionParser->getPrimary()
|
#2 /vendor/twig/twig/lib/Twig/ExpressionParser.php(72): Twig_ExpressionParser->parseExpression(500)
|
#3 /vendor/twig/twig/lib/Twig/ExpressionParser.php(41): Twig_ExpressionParser->getPrimary()
|
#4 /vendor/twig/twig/lib/Twig/ExpressionParser.php(50): Twig_ExpressionParser->parseExpression(31)
|
#5 in /vendor/twig/twig/lib/Twig/ExpressionParser.php on line 170
|
- caused
-
PHPBB-11843 Regression: using underscores in template DEFINE variables yields unexpected behavior
- Closed