Bug #40913 [ReO->Asn]: PDO_MYSQL: PDO::PARAM_LOB does not bind to a stream for fetching a BLOB
| From: | nikic@php.net | Date: | Fri, 18 Dec 2020 16:23:28 +0000 |
| Subject: | Bug #40913 [ReO->Asn]: PDO_MYSQL: 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-231161@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=40913&edit=1
ID: 40913
Updated by: nikic@php.net
Reported by: dennis at inmarket dot lviv dot ua
Summary: PDO_MYSQL: PDO::PARAM_LOB does not bind to a stream
for fetching a BLOB
-Status: Re-Opened
+Status: Assigned
Type: Bug
Package: PDO MySQL
PHP Version: 7.0.13
-Assigned To:
+Assigned To: nikic
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2018-10-26 15:43:57] cmb@php.net
Related To: Bug #57691
------------------------------------------------------------------------
[2018-10-24 14:20:33] php at bohwaz dot net
Yup, I can confirm. Mentioned it in https://wiki.php.net/rfc/implement_sqlite_openblob_in_pdo
Will look into fixing that issue if I get some free time.
------------------------------------------------------------------------
[2018-05-28 15:21:15] benjamin dot morel at gmail dot com
Wow, 11 years.
> The fear to break backwards compatibility is SO enormous within the PHP community, that
> everyone prefers to carry on with bugs, rather than fixing them, so that bad code can continue
> working from one version to the other.
That is so true, and one of the reasons why PHP is still being poorly considered by so many
engineers.
------------------------------------------------------------------------
[2018-04-11 13:54:53] samuel dot chemla at orange dot com
Hi,
it seems this bug won't be fixed soon.
Could you please at least update the doc to reflect that it is broken?
------------------------------------------------------------------------
[2016-03-08 12:39:02] benjamin dot morel at gmail dot com
Still the same with PHP 7.0.4 and pdo_mysql. It returns a string instead of a resource.
PHP 7 would have been THE opportunity to fix weird behaviours such as this one. Missed again.
It's been 9 years now, since this bug has been open. Maybe we can wait for another 5 years
before PHP 8 is released, and this bug can be fixed. Or not.
The fear to break backwards compatibility is SO enormous within the PHP community, that everyone
prefers to carry on with bugs, rather than fixing them, so that bad code can continue working from
one version to the other. Even major releases.
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=40913
--
Edit this bug report at https://bugs.php.net/bug.php?id=40913&edit=1