[php-src] PR #23746: Fix GH-23741: Reset PDO DBLIB callback userdata
| From: | prateekbhujel | Date: | Fri, 18 Sep 2026 02:41:46 +0000 |
| Subject: | [php-src] PR #23746: Fix GH-23741: Reset PDO DBLIB callback userdata | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38551@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23746
Author: prateekbhujel
When a PDO DBLIB statement is destroyed, DB-Library can retain its callback userdata pointer to the
statement error state. A later callback during connection shutdown can then access freed memory
after a failed query.
Reset the userdata to the connection error state before freeing the statement state.