Closed glenkim closed 12 years ago
In the pack() method of phpcassa\DataType\CompositeType, the list() construct is used in the following manner:
list($item, $inclusive) = $item;
Per http://php.net/manual/en/function.list.php,
Warning: Modification of the array during list() execution (e.g. using list($a, $b) = $b) results in undefined behavior.
While the line of code seems to work for now, the code could break without notice in other versions of PHP.
Fixed, thanks!
In the pack() method of phpcassa\DataType\CompositeType, the list() construct is used in the following manner:
list($item, $inclusive) = $item;
Per http://php.net/manual/en/function.list.php,
Warning: Modification of the array during list() execution (e.g. using list($a, $b) = $b) results in undefined behavior.
While the line of code seems to work for now, the code could break without notice in other versions of PHP.