mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
- Only free when result != op1
This commit is contained in:
parent
3e99a228df
commit
4d68c944d9
@ -907,9 +907,9 @@ ZEND_API int concat_function(zval *result, zval *op1, zval *op2)
|
||||
memcpy(result->value.str.val+op1->value.str.len, op2->value.str.val,op2->value.str.len);
|
||||
result->value.str.val[result->value.str.len] = 0;
|
||||
result->type = IS_STRING;
|
||||
}
|
||||
if (use_copy1) {
|
||||
zval_dtor(op1);
|
||||
if (use_copy1) {
|
||||
zval_dtor(op1);
|
||||
}
|
||||
}
|
||||
if (use_copy2) {
|
||||
zval_dtor(op2);
|
||||
|
Loading…
Reference in New Issue
Block a user