6 points · by brownheezo · 14y ago · 5 comments
The 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:
foreach( $bind_params as $key => &$value ){
$statement->bindParam($key, $value);
}
unset($value);
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.