mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 19:36:43 +00:00
5a5a640cbc
This PR was squashed before being merged into the 1.18-dev branch (closes #1609).
Discussion
----------
get PHP version info once on construction
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
Hi,
I was profiling a project and noticed that `phpversion` was called 5000 times by Twig.
This patch reduces the amount of calls without breaking anything (I hope ;) )

Commits
-------
24ff698 get PHP version info once on construction