Bug #69283 [Opn->NoF]: bindParam ouput param don't work

From: Date: Tue, 24 Oct 2017 14:19:07 +0000
Subject: Bug #69283 [Opn->NoF]: bindParam ouput param don't work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212281@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69283&edit=1 ID: 69283 Updated by: yunosh@php.net Reported by: 630969128 at qq dot com Summary: bindParam ouput param don't work -Status: Open +Status: No Feedback Type: Bug Package: PDO MySQL Operating System: win8.1 PHP Version: 5.6.7 Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2015-06-21 02:45:36] ezequielcicala at hotmail dot com That's not what the manual says. You added a '@' before the '?'. ------------------------------------------------------------------------ [2015-03-24 06:18:21] 630969128 at qq dot com Description: ------------ --- From manual page: http://www.php.net/pdo.prepared-statements --- 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) $stmt->execute(); print "$value"; Expected result: ---------------- '3' Actual result: -------------- 'hello' ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69283&edit=1

« previous php.bugs (#212281) next »