|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69283 bindParam ouput param don't work
Submitted: 2015-03-24 06:18 UTC Modified: 2017-10-24 14:19 UTC
From: 630969128 at qq dot com Assigned:
Status: No Feedback Package: PDO MySQL
PHP Version: 5.6.7 OS: win8.1
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2015-03-24 06:18 UTC] 630969128 at qq dot com
From manual page:
Example #5 don't work!
in example #5,a vraiable $value didn't get a return value after exec procedure.
p.s.:in procedure,output param do be changed.
pleace check it.

Test script:
$stmt = $dbh->prepare("CALL ggg(@?)");
$value = 'hello';
$stmt->bindParam(1, $value, PDO::PARAM_STR|PDO::PARAM_INPUT_OUTPUT, 4000);

// 调用存储过程,will change val ,for example : set t = "3"; (t is procedure's output  param)

print "$value";

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-06-21 02:45 UTC] ezequielcicala at hotmail dot com
That's not what the manual says. You added a '@' before the '?'.
 [2017-10-24 14:19 UTC]
-Status: Open +Status: No Feedback
 [2017-10-24 14:19 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Feb 25 06:01:26 2024 UTC