Commit: d922e801ee0c7aafefd34ec7e5132981c4928918 Author: Will Fitch <[email protected]> Tue, 25 Sep 2012 15:22:24 -0400 Committer: David Soria Parra <[email protected]> Tue, 30 Oct 2012 14:32:27 +0100 Parents: 646c0e57387664f56dcf0a3aaa3e8305e887000d Branches: PHP-5.3 PHP-5.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d922e801ee0c7aafefd34ec7e5132981c4928918 Log: Bug #62593 Updated test to verify bindParam doesn't change original value Bugs: https://bugs.php.net/62593 Changed paths: M ext/pdo_pgsql/tests/bug62593.phpt Diff: diff --git a/ext/pdo_pgsql/tests/bug62593.phpt b/ext/pdo_pgsql/tests/bug62593.phpt index 9ad5ff7..e3ebf46 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); -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
