mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
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:
@@ -833,7 +833,7 @@ ZEND_API void zend_call_known_function(
|
|||||||
uint32_t param_count, zval *params, HashTable *named_params);
|
uint32_t param_count, zval *params, HashTable *named_params);
|
||||||
|
|
||||||
static zend_always_inline void zend_call_known_fcc(
|
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;
|
zend_function *func = fcc->function_handler;
|
||||||
/* Need to copy trampolines as they get released after they are called */
|
/* Need to copy trampolines as they get released after they are called */
|
||||||
|
|||||||
Reference in New Issue
Block a user