diff options
| author | Xinchen Hui <laruence@php.net> | 2011-09-10 03:51:16 +0000 |
|---|---|---|
| committer | Xinchen Hui <laruence@php.net> | 2011-09-10 03:51:16 +0000 |
| commit | 5e477ae1f899c6382f86f51ee309d7640ec598db (patch) | |
| tree | e1c0ddfcd3f01d7c33b1db04f374cd5d4d88a06b /ext/mysqli/mysqli_api.c | |
| parent | 6cb483cff8f9eaf7be72bc7686c2c452a942b490 (diff) | |
| download | php-git-5e477ae1f899c6382f86f51ee309d7640ec598db.tar.gz | |
Fixed Bug #55653(PS crash with libmysql when binding same variable as param and out)
Actually this caused by attempt to efree a INTERNED string
Diffstat (limited to 'ext/mysqli/mysqli_api.c')
| -rw-r--r-- | ext/mysqli/mysqli_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c index e20d963fbb..1649597c97 100644 --- a/ext/mysqli/mysqli_api.c +++ b/ext/mysqli/mysqli_api.c @@ -887,7 +887,7 @@ void mysqli_stmt_fetch_libmysql(INTERNAL_FUNCTION_PARAMETERS) */ /* Even if the string is of length zero there is one byte alloced so efree() in all cases */ if (Z_TYPE_P(stmt->result.vars[i]) == IS_STRING) { - efree(stmt->result.vars[i]->value.str.val); + STR_FREE(stmt->result.vars[i]->value.str.val); } if (!stmt->result.is_null[i]) { switch (stmt->result.buf[i].type) { |
