]> granicus.if.org Git - php/commit
PDO MySQL: Fix leak with libmysqlclient and multiple rowsets
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 11 Dec 2020 09:47:16 +0000 (10:47 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 11 Dec 2020 09:51:14 +0000 (10:51 +0100)
commitc927c831e65cdf6aa6152d49820e58e6288a5dcc
treecbee5a56fa4470a04f3f490c1b7d46ee96c8c5f3
parent54a63d91b892653260c93b3604f100db448cfbde
PDO MySQL: Fix leak with libmysqlclient and multiple rowsets

stmt->column_count gets reset before the next_rowset handler is
invoked, so we need to fetch the value from the result set instead.

Arguably PDO should be separating the destruction of the previous
result set and the switch to the next result set more cleanly...
ext/pdo_mysql/mysql_statement.c