[php-src] PR #24297: ext/pdo: Report $options as the argument for constructor option errors
| From: | iliaal | Date: | Tue, 13 Oct 2026 13:57:20 +0000 |
| Subject: | [php-src] PR #24297: ext/pdo: Report $options as the argument for constructor option errors | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-39380@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/24297
Author: iliaal
An invalid attribute in the $options array of PDO::__construct() or PDO::connect() raised an error
naming argument #3 ($password) instead of argument #4 ($options), because
php_pdo_internal_construct_driver() passes 3 to pdo_dbh_attribute_set(). The argument number was
added to that function in 8.5, so 8.4 is unaffected.