mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix for Bug #51870
PDO::fetchAll after a PDO::execute with bindings lead to a segv. It is only in unreleased code and thus doesn't deserve a NEWS entry
This commit is contained in:
parent
e0498b0889
commit
7f44538a11
1 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ static int pdo_mysql_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
|
|||
#endif /* HAVE_MYSQL_NEXT_RESULT || PDO_USE_MYSQLND */
|
||||
#if PDO_USE_MYSQLND
|
||||
if (!S->stmt && S->current_data) {
|
||||
free(S->current_data);
|
||||
mnd_free(S->current_data);
|
||||
}
|
||||
#endif /* PDO_USE_MYSQLND */
|
||||
|
||||
|
@ -652,7 +652,7 @@ static int pdo_mysql_stmt_fetch(pdo_stmt_t *stmt,
|
|||
}
|
||||
#if PDO_USE_MYSQLND
|
||||
if (!S->stmt && S->current_data) {
|
||||
free(S->current_data);
|
||||
mnd_free(S->current_data);
|
||||
}
|
||||
#endif /* PDO_USE_MYSQLND */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue