[php-src] PR #23654: [PDO] Bound-check column index in getColumnMeta()
| From: | iliaal | Date: | Thu, 10 Sep 2026 22:13:47 +0000 |
| Subject: | [php-src] PR #23654: [PDO] Bound-check column index in getColumnMeta() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38430@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23654
Author: iliaal
PDOStatement::getColumnMeta() indexed columns as soon as the driver hook succeeded, without checking
that columns had been described or that the index was in range, so a driver that reports success
unconditionally (pdo_odbc) segfaulted on an unexecuted statement. Both cases now raise ValueError,
matching the fetch paths. Drivers that report failure themselves still return false.