#40913 [Opn->Ctl]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
From: tony2001@php.net Date: Mon, 26 Mar 2007 10:01:49 +0000 Subject: #40913 [Opn->Ctl]: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-110784@lists.php.net to get a copy of this message
ID: 40913
Updated by: tony2001@php.net
Reported By: dennis at inmarket dot lviv dot ua
-Status: Open
+Status: Critical
Bug Type: PDO related
Operating System: Win XP
PHP Version: 5.2.1
-Assigned To:
+Assigned To: wez
Previous Comments:
------------------------------------------------------------------------
[2007-03-25 12:29:07] dennis at inmarket dot lviv dot ua
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 this bug report at http://bugs.php.net/?id=40913&edit=1
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 (#110784) | next » |
|---|