From f39ef577173bd9e2052c5e79e7b6f5f6b7101c63 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sat, 23 Nov 2024 12:19:55 +0100 Subject: [PATCH] Declare proper calling convention --- src/function.c | 2 +- src/function.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/function.c b/src/function.c index a88a087..af27f73 100644 --- a/src/function.c +++ b/src/function.c @@ -409,7 +409,7 @@ zend_bool uopz_get_static(zend_class_entry *clazz, zend_string *function, zval * return 1; } /* }}} */ -void uopz_exit_function(INTERNAL_FUNCTION_PARAMETERS) { /* {{{ */ +void ZEND_FASTCALL uopz_exit_function(INTERNAL_FUNCTION_PARAMETERS) { /* {{{ */ zend_string *str = NULL; zend_long code = 0; diff --git a/src/function.h b/src/function.h index 13b9872..7d18800 100644 --- a/src/function.h +++ b/src/function.h @@ -29,7 +29,7 @@ zend_bool uopz_del_function(zend_class_entry *clazz, zend_string *name, zend_boo void uopz_flags(zend_class_entry *clazz, zend_string *name, zend_long flags, zval *return_value); zend_bool uopz_set_static(zend_class_entry *clazz, zend_string *function, zval *statics); zend_bool uopz_get_static(zend_class_entry *clazz, zend_string *function, zval *return_value); -void uopz_exit_function(INTERNAL_FUNCTION_PARAMETERS); +void ZEND_FASTCALL uopz_exit_function(INTERNAL_FUNCTION_PARAMETERS); #endif /* UOPZ_FUNCTION_H */