mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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:
parent
f1e2cd8625
commit
3c63b26b6d
2 changed files with 4 additions and 4 deletions
|
@ -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 = ¤t_row[i];
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue