From: Ilia Alshanetsky Date: Sat, 9 Jul 2005 05:04:43 +0000 (+0000) Subject: Make cursor closer work with emulation as well. X-Git-Tag: php-5.1.0b3~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c18dfc8529cca627788b06aa67bf86f9326ea25;p=php Make cursor closer work with emulation as well. --- diff --git a/ext/pdo_mysql/mysql_statement.c b/ext/pdo_mysql/mysql_statement.c index 930afae441..d7f4161380 100755 --- a/ext/pdo_mysql/mysql_statement.c +++ b/ext/pdo_mysql/mysql_statement.c @@ -486,6 +486,8 @@ static int pdo_mysql_stmt_cursor_closer(pdo_stmt_t *stmt TSRMLS_DC) #if HAVE_MYSQL_STMT_PREPARE return mysql_stmt_free_result(S->stmt); #endif + mysql_free_result(S->result); + S->result = NULL; return 1; }