Skip to content

Commit 3a258f7

Browse files
committed
check function_name in get_function_or_method_name
1 parent 9e74e58 commit 3a258f7

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
@@ -558,7 +558,7 @@ ZEND_API zend_string *get_active_function_or_method_name(void) /* {{{ */
558558

559559
ZEND_API zend_string *get_function_or_method_name(const zend_function *func) /* {{{ */
560560
{
561-
if (func->common.scope) {
561+
if (func->common.scope && func->common.function_name) {
562562
return zend_create_member_string(func->common.scope->name, func->common.function_name);
563563
}
564564

0 commit comments

Comments
 (0)