From: candrews at integralblue dot com Operating system: n/a PHP version: 5.2.9 PHP Bug Type: PDO related Bug description: Support PDO::PARAM_STMT
Description: ------------ According to the PDO constants page at http://us3.php.net/manual/en/pdo.constants.php , PDO::PARAM_STMT "Represents a recordset type. Not currently supported by any drivers." It would be nice if PDO supported this type for all drivers in that don't directly support it using emulation, and for drivers do, using the driver implementation (just like how all the other prepared statement parameter types work). Reproduce code: --------------- Right now, implementing a prepared statement query involving arrays is (I believe) impossible. <?php $sth = $dbh->prepare('SELECT * FROM users WHERE username in :usernames); $sth->bindParam(":usernames", array("alice","bob","dave"), PDO::PARAM_STMT); $sth->execute(); ?> That would be very nice to be able to do - and I believe that is the correct syntax. -- Edit bug report at http://bugs.php.net/?id=48431&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48431&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48431&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48431&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48431&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48431&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48431&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48431&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48431&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48431&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48431&r=support Expected behavior: http://bugs.php.net/fix.php?id=48431&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48431&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48431&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48431&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48431&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48431&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48431&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48431&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48431&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48431&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48431&r=mysqlcfg