[php-src] PR #23936: ext/pdo: Release driver options after bindParam and bindColumn
| From: | iliaal | Date: | Sat, 26 Sep 2026 22:17:43 +0000 |
| Subject: | [php-src] PR #23936: ext/pdo: Release driver options after bindParam and bindColumn | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38847@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23936
Author: iliaal
bindParam() and bindColumn() copied the driver options zval and then increased its refcount again,
so the value stayed alive after the statement was destroyed. The copy keeps a single reference, and
that reference is released with the binding.