Skip to content

Commit 18cdfd3

Browse files
committed
Skip frameless functions with zend_execute_internal
zend_execute_internal is used to intercept function calls. We must use the DO_FCALL opcode in this instance.
1 parent 49ebfb0 commit 18cdfd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4543,7 +4543,7 @@ static uint32_t find_frameless_function_offset(uint32_t arity, void *handler)
45434543

45444544
static const zend_frameless_function_info *find_frameless_function_info(zend_ast_list *args, zend_function *fbc, uint32_t type)
45454545
{
4546-
if (ZEND_OBSERVER_ENABLED) {
4546+
if (ZEND_OBSERVER_ENABLED || zend_execute_internal) {
45474547
return NULL;
45484548
}
45494549

0 commit comments

Comments
 (0)