mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
Make cursor closer work with emulation as well.
This commit is contained in:
parent
f21084cb0b
commit
4c18dfc852
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user