Skip to content

Commit 75c9f74

Browse files
committed
Fix frameless function name in warnings
1 parent 4dfd4df commit 75c9f74

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Zend/zend_execute_API.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ ZEND_API const char *get_active_function_name(void) /* {{{ */
537537
return NULL;
538538
}
539539

540-
func = EG(current_execute_data)->func;
540+
func = zend_active_function();
541541

542542
switch (func->type) {
543543
case ZEND_USER_FUNCTION: {
@@ -561,8 +561,6 @@ ZEND_API const char *get_active_function_name(void) /* {{{ */
561561

562562
ZEND_API zend_function *zend_active_function_ex(zend_execute_data *execute_data)
563563
{
564-
ZEND_ASSERT(zend_is_executing());
565-
566564
zend_function *func = EX(func);
567565

568566
/* Resolve function if op is a frameless call. */

0 commit comments

Comments
 (0)