Bug #80754 [Opn->Nab]: PDO :: quote should return false, but throws an PDOException instead
| From: | requinix@php.net | Date: | Tue, 16 Feb 2021 08:18:46 +0000 |
| Subject: | Bug #80754 [Opn->Nab]: PDO :: quote should return false, but throws an PDOException instead | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-232177@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80754&edit=1
ID: 80754
Updated by: requinix@php.net
Reported by: menschov dot evgeny at yandex dot ru
Summary: PDO :: quote should return false, but throws an
PDOException instead
-Status: Open
+Status: Not a bug
Type: Bug
Package: PDO ODBC
Operating System: Debian GNU/Linux 10 (buster)
PHP Version: 8.0.2
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
https://www.php.net/manual/en/migration80.incompatible.php
> PHP Data Objects
>
> * The default error handling mode has been changed from "silent" to
> "exceptions". See Errors and error handling for details.
https://www.php.net/manual/en/pdo.error-handling.php
Previous Comments:
------------------------------------------------------------------------
[2021-02-16 07:48:47] menschov dot evgeny at yandex dot ru
Description:
------------
I brought up php 8.0.2 in docker, using pdo odbc drivers to connect to database. In php 7.4,
PDO::quote returned false, in 8.0.2 it started throwing an exception, which breaks backward
compatibility. I attach a screenshot of the problem
https://monosnap.com/file/3X2hncrAbPLQ9FFNNbP4usbCcXCdG2
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80754&edit=1