Bug #69283 [NEW]: bindParam ouput param don't work
From: 630969128 at qq dot com
Operating system: win8.1
PHP version: 5.6.7
Package: PDO MySQL
Bug Type: Bug
Bug description:bindParam ouput param don't work
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 bug report at https://bugs.php.net/bug.php?id=69283&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69283&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69283&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69283&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69283&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69283&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69283&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69283&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69283&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69283&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69283&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69283&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69283&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69283&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69283&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69283&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69283&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69283&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69283&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69283&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69283&r=mysqlcfg
Thread (3 messages)
- 630969128 at qq dot com