|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-11-26 13:22 UTC] johannes@php.net
[2011-09-23 18:18 UTC] morrison dot levi at gmail dot com
[2011-09-23 18:24 UTC] morrison dot levi at gmail dot com
[2014-01-01 12:47 UTC] felipe@php.net
-Package: PDO related
+Package: PDO MySQL
[2021-04-08 21:04 UTC] dharman@php.net
-Status: Open
+Status: Feedback
[2021-04-08 21:04 UTC] dharman@php.net
[2021-04-18 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 20:00:01 2025 UTC |
Description: ------------ PDO_MySQL does not respect type of binded params that are used more than once in query. Test script: --------------- <?php $DB = new PDO("mysql:host=localhost", "root", ""); $statement = $DB->prepare("SELECT SLEEP(50), :bind, :bind"); $bind = 1; $statement->bindParam(":bind", $bind, PDO::PARAM_INT); $statement->execute(); Expected result: ---------------- SELECT SLEEP(50), 1, 1 Actual result: -------------- If you review SHOW PROCESSLIST while test script is waiting for response, you'll see SELECT SLEEP(50), 1, '1' instead of expected result.