PHP Bug #63281 (bugs.php.net)
I came across an interesting "quirk" the other day, while using PHP. If bugs are considered complicated, is it commonplace to just mark them as "WONTFIX"? Shouldn't it, at least, be documented as something to be fixed in the future?
5 comments
[ 4.0 ms ] story [ 33.0 ms ] threadThe bug reporter is using the wrong method, as identified by the first comment.
And the resolution is "won't fix" because it's "too hard."
Then the solution could be to use `&$value` instead. Untested:
BTW The fact that you need to manually break the connection between the loop variable and the array item value using `unset` is a bug, in my opinion.