PHP Bug #63281
bugs.php.net
PHP Bug #63281
1–6 of 6 posts
Re: PHP Bug #63281
#2The bug reporter is using the wrong method, as identified by the first comment.
Re: PHP Bug #63281
#3I don't see how this is a bug? 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."
Re: PHP Bug #63281
#4I don't see how this is a bug? The bug reporter is using the wrong method, as identified by the first comment.
But the behavior is both counter-intuitive and wrong. And the resolution is "won't fix" because it's "too hard."
Re: PHP Bug #63281
#5I don't see how this is a bug? The bug reporter is using the wrong method, as identified by the first comment.
But the behavior is both counter-intuitive and wrong. And the resolution is "won't fix" because it's "too hard."
Re: PHP Bug #63281
#6Then 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.