From 18cdfd3f5161997fb8c09c32a6d7897a5cc25e40 Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Wed, 7 Feb 2024 16:04:26 +0100 Subject: [PATCH] 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. --- Zend/zend_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 2d710a416fb..3334851c4f5 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -4543,7 +4543,7 @@ static uint32_t find_frameless_function_offset(uint32_t arity, void *handler) static const zend_frameless_function_info *find_frameless_function_info(zend_ast_list *args, zend_function *fbc, uint32_t type) { - if (ZEND_OBSERVER_ENABLED) { + if (ZEND_OBSERVER_ENABLED || zend_execute_internal) { return NULL; }