mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Avoid unnecessary reference-counting on strings.
This commit is contained in:
parent
ce18738a30
commit
ccc12b82da
29 changed files with 636 additions and 510 deletions
|
@ -520,9 +520,10 @@ static ZEND_COLD zend_string *zend_get_function_declaration(const zend_function
|
|||
smart_str_appends(&str, "<expression>");
|
||||
}
|
||||
} else {
|
||||
zend_string *zv_str = zval_get_string(zv);
|
||||
zend_string *tmp_zv_str;
|
||||
zend_string *zv_str = zval_get_tmp_string(zv, &tmp_zv_str);
|
||||
smart_str_append(&str, zv_str);
|
||||
zend_string_release(zv_str);
|
||||
zend_tmp_string_release(tmp_zv_str);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue