From 737195c3ae6ac53b9501cfc39cc80fd462909c82 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 21 Dec 2020 15:31:15 +0100 Subject: PDO: Honor ATTR_STRINGIFY_FETCHES for booleans Of the important PDO drivers, this affects only PDO PgSQL, as both MySQL and SQLite do not return native boolean types. --- UPGRADING | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'UPGRADING') diff --git a/UPGRADING b/UPGRADING index c659515f51..222b30b3e9 100644 --- a/UPGRADING +++ b/UPGRADING @@ -35,6 +35,10 @@ PHP 8.1 UPGRADE NOTES . The mysqlnd.fetch_copy_data ini setting has been removed. However, this should not result in user-visible behavior changes. +- PDO: + . PDO::ATTR_STRINGIFY_FETCHES now also stringifies values of type bool to + "0" or "1". Previously booleans were not stringified. + - PDO MySQL: . Integers and floats in result sets will now be returned using native PHP types instead of strings when using emulated prepared statements. This -- cgit v1.2.1