Skip to content

Commit a89d22c

Browse files
authored
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.
1 parent 05efcc2 commit a89d22c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_API.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ ZEND_API void zend_call_known_function(
833833
uint32_t param_count, zval *params, HashTable *named_params);
834834

835835
static zend_always_inline void zend_call_known_fcc(
836-
zend_fcall_info_cache *fcc, zval *retval_ptr, uint32_t param_count, zval *params, HashTable *named_params)
836+
const zend_fcall_info_cache *fcc, zval *retval_ptr, uint32_t param_count, zval *params, HashTable *named_params)
837837
{
838838
zend_function *func = fcc->function_handler;
839839
/* Need to copy trampolines as they get released after they are called */

0 commit comments

Comments
 (0)