This PR was merged into the master branch.
Discussion
----------
Use string instead of large integer
HHVM differs from php-src on large integer parsing (php-src converts
them to floats, HHVM truncates them but leaves them as integers). The
point of this test is to make sure Twig parses it correctly, not the
underlying PHP execution engine.
Commits
-------
d401717 Use string instead of large integer
HHVM differs from php-src on large integer parsing (php-src converts
them to floats, HHVM truncates them but leaves them as integers). The
point of this test is to make sure Twig parses it correctly, not the
underlying PHP execution engine.
This PR was squashed before being merged into the master branch (closes#1269).
Discussion
----------
various cleanups
fix bool -> Boolean for consistency in other parts of twig's code removing
assignment to n as it is never used fix typo and docblock for consistency
remove line break not needed for consistency fix array docblock for
consistency
Commits
-------
cb651e8 various cleanups
This PR was merged into the master branch.
Discussion
----------
fix typo 'in' operator
Fixed a small typo in the negative 'in' test operator
Commits
-------
f9013d5 fix typo 'in' operator
This PR was merged into the master branch.
Discussion
----------
Fixed ZendServer specific DLL Path in install doc
It seems the \ need to be escaped in the tip section.
(see the file on github or the Twig website)
Commits
-------
2b102e3 Fixed ZendServer specific DLL Path in install doc
This PR was squashed before being merged into the master branch (closes#1258).
Discussion
----------
Fix twig_first and twig_last filters for UTF8 multibyte strings
After string is sliced we already have the right result with a first/last letter for UTF8 string.
Commits
-------
6003ae4 Fix twig_first and twig_last filters for UTF8 multibyte strings
This PR was merged into the master branch.
Discussion
----------
added a source function to include the content of a template without rendering it
Replaces #1230.
There is one question about the implementation: Should the content be considered safe (which is the current implementation)?
Commits
-------
dff7d2c added a source function to include the content of a template without rendering it
This PR was squashed before being merged into the master branch (closes#1256).
Discussion
----------
Fixed C extension sandbox behavior
fixes#1254
Commits
-------
40bba0e Fixed C extension sandbox behavior
This PR was merged into the master branch.
Discussion
----------
fixed error filename/line when an error occurs in an included file
fixed#1141
Commits
-------
ba0bf63 refactored some tests
1cdc913 fixed error filename/line when an error occurs in an included file
de985a8 failing test
This PR was merged into the master branch.
Discussion
----------
allowed tests to be made of 1 or 2 words
Commits
-------
52c952c allowed tests to be made of 1 or 2 words
This PR was merged into the master branch.
Discussion
----------
allowed operators that contain whitespaces to have more than one whitespace
Commits
-------
724dc61 allowed operators that contain whitespaces to have more than one whitespace
To be able to cover all cases, we need to catch the exception when we
know the execution context (the block being rendered). The only
possibility is to actually try/catch exceptions in the displayBlock()
method directly.
This PR was merged into the master branch.
Discussion
----------
Fixed minor typo "base" into "based" line 67
Commits
-------
08282d3 Fixed minor typo "base" into "based" line 67
This PR was merged into the master branch.
Discussion
----------
made it possible to use named operators as variables
Commits
-------
8d805aa made it possible to use named operators as variables
This PR was squashed before being merged into the master branch (closes#1231).
Discussion
----------
fix phpdoc for environment, lexer and parser
First commit fixes several phpdocs <del>and also an instanceof check</del>.
The second commit changes an exception from Runtime to Syntax because it doesn't make sense to throw runtime exception during compilation. It also makes it consistent with all the rest (lexer, parser, compiler classes).
Commits
-------
cc5f3c4 fix phpdoc for environment, lexer and parser
This PR was squashed before being merged into the master branch (closes#1234).
Discussion
----------
Added support DateTimeInterface (PHP 5.5) if available
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | new BSD
| Doc PR |
Commits
-------
ca61fac Added support DateTimeInterface (PHP 5.5) if available