Bug #69283 [Com]: bindParam ouput param don't work
| From: | ezequielcicala at hotmail dot com | Date: | Sun, 21 Jun 2015 02:45:37 +0000 |
| Subject: | Bug #69283 [Com]: bindParam ouput param don't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-193728@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
Comment by: ezequielcicala at hotmail dot com
Reported by: 630969128 at qq dot com
Summary: bindParam ouput param don't work
Status: Open
Type: Bug
Package: PDO MySQL
Operating System: win8.1
PHP Version: 5.6.7
Block user comment: N
Private report: N
New Comment:
That's not what the manual says. You added a '@' before the '?'.
Previous Comments:
------------------------------------------------------------------------
[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