diff options
author | Will Fitch <willfitch@php.net> | 2012-09-25 15:22:24 -0400 |
---|---|---|
committer | David Soria Parra <dsp@php.net> | 2012-10-30 14:32:27 +0100 |
commit | d922e801ee0c7aafefd34ec7e5132981c4928918 (patch) | |
tree | 5b625d7f494e9f986cf7619bbdcd3c7cfefb209a /ext/pdo_pgsql | |
parent | 646c0e57387664f56dcf0a3aaa3e8305e887000d (diff) | |
download | php-git-d922e801ee0c7aafefd34ec7e5132981c4928918.tar.gz |
Bug #62593 Updated test to verify bindParam doesn't change original value
Diffstat (limited to 'ext/pdo_pgsql')
-rw-r--r-- | ext/pdo_pgsql/tests/bug62593.phpt | 4 |
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); |