mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02: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
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue