summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Fitch <willfitch@php.net>2012-09-25 15:22:24 -0400
committerDavid Soria Parra <dsp@php.net>2012-10-30 14:32:27 +0100
commitd922e801ee0c7aafefd34ec7e5132981c4928918 (patch)
tree5b625d7f494e9f986cf7619bbdcd3c7cfefb209a
parent646c0e57387664f56dcf0a3aaa3e8305e887000d (diff)
downloadphp-git-d922e801ee0c7aafefd34ec7e5132981c4928918.tar.gz
Bug #62593 Updated test to verify bindParam doesn't change original value
-rw-r--r--ext/pdo_pgsql/tests/bug62593.phpt4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/pdo_pgsql/tests/bug62593.phpt b/ext/pdo_pgsql/tests/bug62593.phpt
index 9ad5ff7a0a..e3ebf46ed5 100644
--- a/ext/pdo_pgsql/tests/bug62593.phpt
+++ b/ext/pdo_pgsql/tests/bug62593.phpt
@@ -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);