Skip to content

Commit 7b8d42e

Browse files
committed
Zend: use %pS printf specifier in zend_is_callable_check_class()
1 parent 184e78b commit 7b8d42e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Zend/zend_API.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3821,7 +3821,7 @@ static bool zend_is_callable_check_class(zend_string *name, zend_class_entry *sc
38213821
*strict_class = true;
38223822
ret = true;
38233823
} else {
3824-
if (error) zend_spprintf(error, 0, "class \"%.*s\" not found", (int)name_len, ZSTR_VAL(name));
3824+
if (error) zend_spprintf(error, 0, "class \"%pS\" not found", name);
38253825
}
38263826
ZSTR_ALLOCA_FREE(lcname, use_heap);
38273827
/* User error handlers may throw from deprecations above; do not report callable as valid. */

0 commit comments

Comments
 (0)