Skip to content

Commit

Permalink
Bug #62593 Updated test to verify bindParam doesn't change original v…
Browse files Browse the repository at this point in the history
…alue
  • Loading branch information
willfitch authored and dsp committed Oct 30, 2012
1 parent 646c0e5 commit d922e80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/pdo_pgsql/tests/bug62593.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ $query->bindValue(':foo', 0, PDO::PARAM_BOOL);
$query->execute();
$errors[] = $query->errorInfo();

$value = false;
// Verify bindParam maintains reference and only passes when execute is called
$value = true;
$query->bindParam(':foo', $value, PDO::PARAM_BOOL);
$value = false;
$query->execute();
$errors[] = $query->errorInfo();
var_dump($value);
Expand Down

0 comments on commit d922e80

Please sign in to comment.