Skip to content

Commit 1c52e37

Browse files
committed
UPGRADING
1 parent 271b460 commit 1c52e37

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

UPGRADING

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,18 @@ PHP 8.5 UPGRADE NOTES
5050
. pcntl_exec() now throws ValueErrors when entries or keys of the
5151
$env_vars parameter contain null bytes.
5252

53+
- PDO:
54+
. The constructor arguments set in conjunction with PDO::FETCH_CLASS now
55+
follow the usual CUFA semantics.
56+
This means string keys will act like a named argument.
57+
Moreover, automatic wrapping for by-value arguments passed to a by-ref
58+
parameter has been removed, and the usual E_WARNING about this is now
59+
emitted.
60+
To pass a variable by-ref to a constructor argument use the general
61+
array value reference assignment: $ctor_args = [&$valByRef]
62+
. Attempting to modify a PDOStatement during a call to PDO::fetch(),
63+
PDO::fetchObject(), PDO::fetchAll() will now throw an Error.
64+
5365
- PDO_FIREBIRD:
5466
. A ValueError is now thrown when trying to set a cursor name that is too
5567
long on a PDOStatement resulting from the Firebird driver.

0 commit comments

Comments
 (0)