Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 4 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /