mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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
This commit is contained in:
parent
6cb483cff8
commit
5e477ae1f8
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue