We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dfd4df commit 75c9f74Copy full SHA for 75c9f74
Zend/zend_execute_API.c
@@ -537,7 +537,7 @@ ZEND_API const char *get_active_function_name(void) /* {{{ */
537
return NULL;
538
}
539
540
- func = EG(current_execute_data)->func;
+ func = zend_active_function();
541
542
switch (func->type) {
543
case ZEND_USER_FUNCTION: {
@@ -561,8 +561,6 @@ ZEND_API const char *get_active_function_name(void) /* {{{ */
561
562
ZEND_API zend_function *zend_active_function_ex(zend_execute_data *execute_data)
563
{
564
- ZEND_ASSERT(zend_is_executing());
565
-
566
zend_function *func = EX(func);
567
568
/* Resolve function if op is a frameless call. */
0 commit comments