mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-01 01:18:12 +00:00
f1e5278aea
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