1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Improve PDO entry in UPGRADING file (#18446)

This commit is contained in:
Kamil Tekiela
2025-04-27 20:05:57 +01:00
committed by GitHub
parent 2336aa684d
commit 6fa669a125

View File

@@ -82,8 +82,10 @@ PHP 8.5 UPGRADE NOTES
emitted.
To pass a variable by-ref to a constructor argument use the general
array value reference assignment: $ctor_args = [&$valByRef]
. Attempting to modify a PDOStatement during a call to PDO::fetch(),
PDO::fetchObject(), PDO::fetchAll() will now throw an Error.
. Attempting to call PDOStatement::setFetchMode during a call to PDO::fetch(),
PDO::fetchObject(), PDO::fetchAll(),
for example using tricks such as passing the statement object as a constructor
argument when fetching into an object, will now throw an Error.
. The value of the constants PDO::FETCH_GROUP, PDO::FETCH_UNIQUE,
PDO::FETCH_CLASSTYPE, PDO::FETCH_PROPS_LATE, and PDO::FETCH_SERIALIZE
has changed.