Commits
-------
b295274 fix Date Format filter: DateInterval does not provide setTimezone()
Discussion
----------
fix Date Format filter: DateInterval does not provide setTimezone()
Commits
-------
fd78ec0 Fixed PhpDoc for Twig_TokenParserInterface and all other TokenParsers
Discussion
----------
Fixed PhpDoc for Twig_TokenParserInterface and all other TokenParsers
Commits
-------
7194b1a Added a notice in the `nl2br` filter documentation about the proper Twig version to use it
Discussion
----------
Added a notice in the `nl2br` filter documentation ...
... about the proper Twig version to use it (1.5)
Commits
-------
542e9e7 added getKeyValuePairs() on Twig_Node_Expression_Array
3f64f1d added test for hash keys
4bdb3a9 fixed tests
3b1f269 support any expression as hash key
Discussion
----------
Allow hash keys to be any expression
This allows hash keys to be any expression
---------------------------------------------------------------------------
by fabpot at 2011/12/07 02:08:19 -0800
I had not implemented this feature back then because I'm not sure it makes sense to support it in the context of a templating system. I'm still not convinced that this is useful.
Commits
-------
b26d69a removed bogus TSRMLS_CCs
Discussion
----------
Fix strict mode in extension when building in ZTS mode
This removes a few misplaced TSRMLS_CCs causing if() expressions to always evaluate to true. This caused twig_template_get_attributes to always behave as if strict mode were disabled.
Commits
-------
8255b8b Fix test for previous commit
834ce4c Fix loop increment on some for loops (fix#562)
Discussion
----------
Fix loop increment
PR for #562.
Commits
-------
9e6f285 fixed crash in twig_template_get_attributes when input is not an array or object
Discussion
----------
Fix crash in twig_template_get_attributes when input is not an array or object
This fixes a crash when the input of twig_template_get_attributes() is not an array or object, and strict mode is enabled.
---------------------------------------------------------------------------
by nikic at 2011/12/16 12:03:21 -0800
Could you maybe place the exception tests in a different method?
---------------------------------------------------------------------------
by arnaud-lb at 2011/12/16 12:13:35 -0800
This method already expects many of its inputs to cause an exception to be thrown (it tests getAttribute() in strict mode, and in many cases the attribute isn't defined). I don't see a real benefit from moving these tests in a separate method in this case.