Skip to content

Commit 5081aa0

Browse files
committed
check function_name in get_function_or_method_name
1 parent 82dae61 commit 5081aa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_execute_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ ZEND_API zend_string *get_active_function_or_method_name(void) /* {{{ */
504504

505505
ZEND_API zend_string *get_function_or_method_name(const zend_function *func) /* {{{ */
506506
{
507-
if (func->common.scope) {
507+
if (func->common.scope && func->common.function_name) {
508508
return zend_create_member_string(func->common.scope->name, func->common.function_name);
509509
}
510510

0 commit comments

Comments
 (0)