mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08: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:
parent
05efcc245e
commit
a89d22cc0c
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user