Commit 5ccaccda97d for php.net
commit 5ccaccda97df3f445f7c4d12a5ad646c887d80ae
Author: Arshid <arshidkv12@gmail.com>
Date: Fri Mar 13 05:44:03 2026 +0530
ext/reflection: Use smart_str_append instead of smart_str_appendl (#21413)
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index e44a746ff08..5a349b28905 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -875,7 +875,7 @@ static void _function_string(smart_str *str, zend_function *fptr, zend_class_ent
smart_str_append_printf(str, "%s%s\n", indent, ZSTR_VAL(fptr->internal_function.doc_comment));
}
- smart_str_appendl(str, indent, strlen(indent));
+ smart_str_appends(str, indent);
smart_str_appends(str, fptr->common.fn_flags & ZEND_ACC_CLOSURE ? "Closure [ " : (fptr->common.scope ? "Method [ " : "Function [ "));
smart_str_appends(str, (fptr->type == ZEND_USER_FUNCTION) ? "<user" : "<internal");
if (fptr->common.fn_flags & ZEND_ACC_DEPRECATED) {