Skip to content

Commit 6fa669a

Browse files
Improve PDO entry in UPGRADING file (#18446)
1 parent 2336aa6 commit 6fa669a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

UPGRADING

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

0 commit comments

Comments
 (0)