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.
This commit is contained in:
Ilija Tovilo 2024-02-07 16:04:26 +01:00
parent 49ebfb04ef
commit 18cdfd3f51
No known key found for this signature in database
GPG key ID: A4F5D403F118200A

View file

@ -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) 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; return NULL;
} }