[php-src] PR #23849: ext/pdo: Fail nextRowset() when the column describer fails
| From: | iliaal | Date: | Tue, 22 Sep 2026 14:30:39 +0000 |
| Subject: | [php-src] PR #23849: ext/pdo: Fail nextRowset() when the column describer fails | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38722@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23849
Author: iliaal
pdo_stmt_do_next_rowset() dropped the return value of pdo_stmt_describe_columns(), so a driver whose
describer failed after the rowset advance left columns[] partially initialized while nextRowset()
still reported success, and the next fetch read that incomplete state. pdo_stmt_do_execute(),
do_fetch() and PDO::prepare() already check it. No test: odbc_stmt_describe() fails when
SQLDescribeCol() or SQLColAttribute() does, which needs a server driven into that state, and the
bundled sqlite describer only fails for a column index past its own count, which the describe loop
never passes it.