From 97710c764b7ee81454a83a2004834a22d2c3b5e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 17 May 2024 08:47:43 +0200 Subject: [PATCH] Make the `fcc` parameter `const` in `zend_call_known_fcc` This makes it legal to call the function from a caller that only has a `const` pointer to the `fcc` to prevent accidental modification. --- Zend/zend_API.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_API.h b/Zend/zend_API.h index acdc5b06b3d52..1114eeeec14ef 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -833,7 +833,7 @@ ZEND_API void zend_call_known_function( uint32_t param_count, zval *params, HashTable *named_params); static zend_always_inline void zend_call_known_fcc( - zend_fcall_info_cache *fcc, zval *retval_ptr, uint32_t param_count, zval *params, HashTable *named_params) + const zend_fcall_info_cache *fcc, zval *retval_ptr, uint32_t param_count, zval *params, HashTable *named_params) { zend_function *func = fcc->function_handler; /* Need to copy trampolines as they get released after they are called */