Use zmm for row_c data

This API already doesn't match libmysqlclient, so we may as well
use the zmm.
This commit is contained in:
Nikita Popov 2020-12-14 13:42:38 +01:00
parent f1e2cd8625
commit 3c63b26b6d
2 changed files with 4 additions and 4 deletions

View file

@ -695,7 +695,7 @@ MYSQLND_METHOD(mysqlnd_result_unbuffered, fetch_row_c)(MYSQLND_RES * result, voi
DBG_RETURN(FAIL);
}
{
*row = mnd_malloc(field_count * sizeof(char *));
*row = mnd_emalloc(field_count * sizeof(char *));
MYSQLND_FIELD * field = meta->fields;
size_t * lengths = result->unbuf->lengths;
@ -991,7 +991,7 @@ MYSQLND_METHOD(mysqlnd_result_buffered, fetch_row_c)(MYSQLND_RES * result, void
}
/* BEGIN difference between normal normal fetch and _c */
*row = mnd_malloc(field_count * sizeof(char *));
*row = mnd_emalloc(field_count * sizeof(char *));
for (i = 0; i < field_count; ++i) {
zval * data = &current_row[i];

View file

@ -106,7 +106,7 @@ static int pdo_mysql_stmt_dtor(pdo_stmt_t *stmt) /* {{{ */
#ifdef PDO_USE_MYSQLND
if (!S->stmt && S->current_data) {
mnd_free(S->current_data);
mnd_efree(S->current_data);
}
#endif /* PDO_USE_MYSQLND */
@ -554,7 +554,7 @@ static int pdo_mysql_stmt_fetch(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori
}
if (!S->stmt && S->current_data) {
mnd_free(S->current_data);
mnd_efree(S->current_data);
}
#else
int ret;