Skip to content

Commit 5ccaccd

Browse files
authored
ext/reflection: Use smart_str_append instead of smart_str_appendl (#21413)
1 parent a026333 commit 5ccaccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/reflection/php_reflection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ static void _function_string(smart_str *str, zend_function *fptr, zend_class_ent
875875
smart_str_append_printf(str, "%s%s\n", indent, ZSTR_VAL(fptr->internal_function.doc_comment));
876876
}
877877

878-
smart_str_appendl(str, indent, strlen(indent));
878+
smart_str_appends(str, indent);
879879
smart_str_appends(str, fptr->common.fn_flags & ZEND_ACC_CLOSURE ? "Closure [ " : (fptr->common.scope ? "Method [ " : "Function [ "));
880880
smart_str_appends(str, (fptr->type == ZEND_USER_FUNCTION) ? "<user" : "<internal");
881881
if (fptr->common.fn_flags & ZEND_ACC_DEPRECATED) {

0 commit comments

Comments
 (0)