]> granicus.if.org Git - php/commit
Fix stmt_free_result implementation and usage
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 9 Dec 2020 10:13:48 +0000 (11:13 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 9 Dec 2020 10:13:48 +0000 (11:13 +0100)
commit18517e7a635e68969ed926f159bb66fb89d5cd3b
treee0ac58efc2a5c01aa78270941c8a88bc415c452a
parent9c0712d2cd9f4eab05c0ff73e054a646cd070188
Fix stmt_free_result implementation and usage

Two bugs both affecting the bug_pecl_7976.phpt test ("works with
mysqlnd" haha):

 * We should not change the connection state in stmt_free_result.
   This makes mysql_stmt_free_result usable under mysqlnd and
   not just libmysqlclient.
 * If we call mysql_stmt_free_result, we still need to consume
   any outstanding result sets.
ext/mysqlnd/mysqlnd_ps.c
ext/pdo_mysql/mysql_statement.c
ext/pdo_mysql/tests/bug_pecl_7976.phpt