#40913 [NEW]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
From: dennis at inmarket dot lviv dot ua Date: Sun, 25 Mar 2007 12:29:07 +0000 Subject: #40913 [NEW]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB Groups: php.bugs Request: Send a blank email to php-bugs+get-110762@lists.php.net to get a copy of this message
From: dennis at inmarket dot lviv dot ua
Operating system: Win XP
PHP version: 5.2.1
PHP Bug Type: PDO related
Bug description: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
Description:
------------
PDOStatement::bindColumn($idx, $var, PDO::PARAM_LOB) for SELECT query
makes $var a string with the BLOB Data rather than a stream, for both MySQL
and SQLite.
Reproduce code:
---------------
$id = (int)$_REQUEST['book'];
$stmt = $conn->prepare("SELECT coverMime, coverImage FROM books WHERE
id=$id");
$stmt->execute();
$stmt->bindColumn(1, $mime);
$stmt->bindColumn(2, $image, PDO::PARAM_LOB);
$stmt->fetch(PDO::FETCH_BOUND);
var_dump($image);
Expected result:
----------------
Resource #1
Actual result:
--------------
String(792) {GIF89a...}
--
Edit bug report at http://bugs.php.net/?id=40913&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40913&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40913&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40913&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40913&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40913&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40913&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40913&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40913&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40913&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40913&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40913&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40913&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40913&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40913&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40913&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40913&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40913&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40913&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40913&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40913&r=mysqlcfg
Thread (39 messages)
- #40913 [Opn->Ctl]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- #40913 [Ctl->Asn]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- #40913 [Com]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- #40913 [Com]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- #40913 [Com]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- #40913 [Com]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- #40913 [Com]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- #40913 [Asn->Fbk]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- #40913 [Com]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- #40913 [Com]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- #40913 [Com]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- #40913 [NoF->Ver]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- #40913 [Com]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Ver->Fbk]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Fbk->Csd]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Csd->ReO]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO_MYSQL: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO_MYSQL: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO_MYSQL: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO_MYSQL: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO_MYSQL: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO_MYSQL: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO_MYSQL: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO_MYSQL: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO_MYSQL: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO_MYSQL: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Com]: PDO_MYSQL: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [ReO->Asn]: PDO_MYSQL: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
- Bug #40913 [Asn->Csd]: PDO_MYSQL: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
| « previous | php.bugs (#110762) | next » |
|---|