Skip to content

Commit 1adfed2

Browse files
committed
Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4: Revert "Fix GH-20214: PDO::FETCH_DEFAULT unexpected behavior with PDOStatement::setFetchMode (#21434)"
2 parents a6566e7 + 171b722 commit 1adfed2

3 files changed

Lines changed: 1 addition & 71 deletions

File tree

NEWS

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.5.7
44

5-
- PDO:
6-
. Fixed bug GH-20214 (PDO::FETCH_DEFAULT unexpected behavior with
7-
setFetchMode). (iliaal)
5+
86

97
07 May 2026, PHP 8.5.6
108

ext/pdo/pdo_stmt.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,10 +1630,6 @@ bool pdo_stmt_setup_fetch_mode(pdo_stmt_t *stmt, zend_long mode, uint32_t mode_a
16301630

16311631
flags = mode & PDO_FETCH_FLAGS;
16321632

1633-
if ((mode & ~PDO_FETCH_FLAGS) == PDO_FETCH_USE_DEFAULT) {
1634-
mode = stmt->dbh->default_fetch_type | flags;
1635-
}
1636-
16371633
if (!pdo_verify_fetch_mode(stmt->default_fetch_type, mode, mode_arg_num, false)) {
16381634
return false;
16391635
}

ext/pdo/tests/gh20214.phpt

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)