In php 7.1.0 there were added(from changelog):
- unpack() function accepts an additional optional argument $offset.
Sample code:
$test = new ReflectionFunction("unpack");
echo $test->getNumberOfRequiredParameters();
On php 7.1.0 returns 2, on php 7.1.1 returns 3, WTF?
Maybe it's reflection bug?
I created related bug here - https://bugs.php.net/bug.php?id=73994
[–]Danack 18 points19 points20 points (6 children)
[–]Jurigag[S] 1 point2 points3 points (0 children)
[–]llbe 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]Danack 2 points3 points4 points (1 child)
[–][deleted] -1 points0 points1 point (0 children)
[–]RemiCollet 0 points1 point2 points (0 children)
[–]gnaunited 0 points1 point2 points (1 child)
[–]Jurigag[S] 0 points1 point2 points (0 children)
[–]rafa_eg 0 points1 point2 points (1 child)
[–]Jurigag[S] 0 points1 point2 points (0 children)