[php-src] PR #23799: ext/pdo: Do not register a bindColumn() binding after an exception
| From: | iliaal | Date: | Sun, 20 Sep 2026 16:13:24 +0000 |
| Subject: | [php-src] PR #23799: ext/pdo: Do not register a bindColumn() binding after an exception | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38637@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23799
Author: iliaal
Under ERRMODE_EXCEPTION, really_register_bound_param() raises the implementation error for an
unknown column name and then registers the binding anyway, so repeated failing bindColumn() calls
with distinct names grow bound_columns without bound, about 33 MB over 200k calls. Registration now
aborts once an exception is pending. bindValue() and bindParam() take the is_param path, which skips
this mapping block, so they are unaffected.