mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 02:46:29 +00:00
f1e5278aeab8c6522e47b893a7e5e39d7212f9cb
Commits -------11b8689Refactoring: using && instead of nested if's7aa6757Bug correction: Parsing integers large than PHP_INT_MAX was generating trucated token values.046e4ffBug correction: Parsing integers large than PHP_INT_MAX was generating trucated token values. Discussion ---------- Fixed bug that was trucating integers large then PHP_INT_MAX The following code {% set sizes = [7077888, 452984832, 28991029248, 1855425871872, 9223372036854775807] %} {% for i in sizes %} {{ i }} {% endfor %} was generating the following output 7077888 452984832 2147483647 2147483647 2147483647 With the fix, the output looks like the following on Ubuntu 11.04 7077888 452984832 28991029248 1855425871872 9.2233720368548E+18
…
…
…
Twig, the flexible, fast, and secure template language for PHP
Twig is a template language for PHP, released under the new BSD license (code and documentation).
Twig uses a syntax similar to the Django and Jinja template languages which inspired the Twig runtime environment.
Description
Languages
PHP
99.9%