I came across this line:
list($diff, $current, $concurrent) = $diff;
Documentation states that this should result in undefined behaviour. What are the possible variants of this behaviour? Variable $diff is array, containing 3 elements with variable content.
This line is part of application that contains a bug and author of this line is unavailable. Though I am almost sure that it is not what I am looking for, it would be nice to be 100% sure. I am using PHP 5.6.25 as FPM/FastCGI. Thanks in advance.
$array = $diff; list($diff, $current, $concurrent) = $array;will eliminate any undefined behavior.$diffwith$diffwhilst it's been evaluated. Perhaps doing what @Steve suggested or changing thelist($diff...variable will help.