Make the fcc parameter const in zend_call_known_fcc (#14259)

This makes it legal to call the function from a caller that only has a `const`
pointer to the `fcc` to prevent accidental modification.
This commit is contained in:
Tim Düsterhus 2024-05-17 16:14:16 +02:00 committed by GitHub
parent 05efcc245e
commit a89d22cc0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 */