This PR was merged into the 1.x branch.
Discussion
----------
[v1] Fixed counting children of SimpleXMLElement object
It works correctly in v1.32 and since v1.33 it is not working correctly.
See: https://github.com/twigphp/Twig/compare/v1.32.0...v1.33.0#diff-d7378002f67a61c458c1de0468eef74fR1265
Test code:
```php
$xml = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><doc><elem/><elem/></doc>');
var_dump($xml instanceof \Countable);
echo 'Count: ' . count($xml), PHP_EOL;
echo 'Strlen: ' . strlen($xml), PHP_EOL;
echo 'MB Strlen: ' . mb_strlen($xml), PHP_EOL;
```
Results:
```
bool(false)
Count: 2
Strlen: 0
MB Strlen: 0
```
https://3v4l.org/VvUXG
Commits
-------
4a23bdc3 Fixed counting children of SimpleXMLElement object
* 1.x:
added missing else clause to avoid infinite loops
fixed .. (range operator) in sandbox policy
fixed version
bumped version to 1.35.3-DEV
prepared the 1.35.2 release
This PR was merged into the 1.x branch.
Discussion
----------
Add missing else clause to avoid infinite loops
Commits
-------
de2be6a0 added missing else clause to avoid infinite loops
This PR was merged into the 1.x branch.
Discussion
----------
Fix .. (range operator) in sandbox policy
Closes#2630
Commits
-------
6f45fcf5 fixed .. (range operator) in sandbox policy
This PR was merged into the 2.x branch.
Discussion
----------
Optimize parser
Depending on the complexity of the template, I see up to 50% faster template compilation.
Commits
-------
510e5eba optimized the parser by inlining the constant values
This PR was merged into the 2.x branch.
Discussion
----------
Make a small performance improvement
And it also fixes some potential subtle bugs.
Commits
-------
27f905ed made a small performance improvement
This PR was squashed before being merged into the 1.x branch (closes#2647).
Discussion
----------
Fix profiler unicity when several ones are registered
Closes#2627, closes#2643, alternative to #2645
What happens is that both Twig and Symfony register a Twig profiler. Unfortunately, the current code does assign the same variable for both profiler, which means that trying to close it twice does not work.
Commits
-------
0ee096f0 fixed test
7b2bdbe3 fixed profiler unicity when several ones are registered
This PR was merged into the 1.x branch.
Discussion
----------
Switch the PHP ext jobs to a whitelist rather than a blacklist
Any new PHP version added in the future will be a PHP 7.x one, not a 5.x one, and so should not have a job for the extension.
the whitelist is already shorter than the blacklist today (3 whitelisted vs 4 blacklisted before, as PHP 5.3 is already handled separately due to precise anyway)
Commits
-------
738f17bb Switch the PHP ext jobs to a whitelist rather than a blacklist
This PR was squashed before being merged into the 2.x branch (closes#2641).
Discussion
----------
Optimize performance of calls to extensions at runtime
Commits
-------
540c9006 updated CHANGELOG
f4c5152f optimized calls to custom extension runtimes
279993b2 optimized performance when accessing extensions in templates
This PR was squashed before being merged into the 1.x branch (closes#2637).
Discussion
----------
Fix C ext
Commits
-------
bffc117f simplified code
a0c24242 fixed C ext
64e85689 fixed Travis config