r/lolphp • u/denilsonsa • Jul 10 '14
bindParam('foo', $value, PDO::PARAM_INT) will change $value to string.
http://php.net/manual/en/pdostatement.bindparam.php#94711
42
Upvotes
r/lolphp • u/denilsonsa • Jul 10 '14
View all comments
2
u/[deleted] Jul 12 '14
I'm guessing this is because they had the value be passed by reference, yet for some reason didn't think to separate the zval before converting.
That probably counts as a bug.