ID: 40913 Comment by: jcook at macmillanmarketing dot com Reported By: dennis at inmarket dot lviv dot ua Status: Verified Bug Type: PDO related Operating System: Win XP PHP Version: 5.2.6 Assigned To: wez New Comment:
I've just been able to reproduce this bug today running PHP 5.3.1 on Windows. Reproduce Code: $db = db::getConn(); $st = $db->prepare($sql); $st->execute(array(':id' => $id)); $st->bindColumn(1, $image, PDO::PARAM_LOB); $st->fetch(PDO::FETCH_BOUND); header ('Content-type: image/jpeg'); fpassthru($image);// this call fails with 'supplied argument is not a valid stream resource' Expected result: Resource Actual result: string I can work around this error for what I'm trying to do but it would be nice if this was fixed. Previous Comments: ------------------------------------------------------------------------ [2009-07-27 15:12:53] ralph dot reckert at web dot de That error still does not seem to be solved in the current PHP version 5.3.0 nor in 5.2.10. At least it is not listed in the ChangeLog list of fixed bugs of that versions. It would be nice if, four years after PDO was released and almost two and a half years after that bug was first reported, someone could try to fix it, really test that fix and make shure it finds it's way into some release version of PHP. Until then, in my opinion the status of this bug report should be OPEN! Best regards, Ralph ------------------------------------------------------------------------ [2009-06-30 14:13:16] ralfbecker at egroupware dot org Hi, I still can reproduce the Problem with php5.3.0RC2. Ralf ------------------------------------------------------------------------ [2009-05-29 14:25:59] linuxuser586 at yahoo dot com Problem still exists on Windows 2003 with PHP Version 5.2.10RC2-dev Build Date May 29 2009 11:39:28 ------------------------------------------------------------------------ [2009-05-03 01:00:03] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2009-04-25 14:44:38] j...@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/40913 -- Edit this bug report at http://bugs.php.net/?id=40913&edit=1