Skip to content

Commit f3ae692

Browse files
committed
ext/pdo: update pdo_set_fetch_mode_errors expect for GH-20214
The GH-20214 setFetchMode fix (#21434) now rejects FETCH_CLASSTYPE|FETCH_PROPS_LATE when the base fetch mode is not FETCH_CLASS. The expected output for Mode 16 in the second loop had not been updated to reflect the stricter validation, causing common.phpt failures across all PDO drivers after the fix merged up to PHP-8.5.
1 parent a6566e7 commit f3ae692

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/pdo/tests/pdo_set_fetch_mode_errors.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ ValueError: PDOStatement::setFetchMode(): Argument #1 ($mode) cannot use PDO::FE
8282
Mode: 15
8383
ValueError: PDOStatement::setFetchMode(): Argument #1 ($mode) cannot use PDO::FETCH_CLASSTYPE, PDO::FETCH_PROPS_LATE, or PDO::FETCH_SERIALIZE fetch flags with a fetch mode other than PDO::FETCH_CLASS
8484
Mode: 16
85-
bool(true)
85+
ValueError: PDOStatement::setFetchMode(): Argument #1 ($mode) cannot use PDO::FETCH_CLASSTYPE, PDO::FETCH_PROPS_LATE, or PDO::FETCH_SERIALIZE fetch flags with a fetch mode other than PDO::FETCH_CLASS
8686
ValueError: PDOStatement::setFetchMode(): Argument #1 ($mode) cannot use PDO::FETCH_CLASSTYPE, PDO::FETCH_PROPS_LATE, or PDO::FETCH_SERIALIZE fetch flags with a fetch mode other than PDO::FETCH_CLASS
8787
ValueError: PDOStatement::setFetchMode(): Argument #1 ($mode) must be a bitmask of PDO::FETCH_* constants
8888
ValueError: PDOStatement::setFetchMode(): Argument #1 ($mode) PDO::FETCH_FUNC can only be used with PDOStatement::fetchAll()

0 commit comments

Comments
 (0)