History log of /PHP-8.2/ext/ffi/tests/046.phpt (Results 1 – 2 of 2)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# efbdcb8e 14-Jul-2021 Tyson Andre

Rename FFI `getFuncArg*` to `getFuncParameter*`, $arg_index->$index (#7236)

PHP is already already using "Parameter" instead of "Argument" for reflection on types elsewhere.

Paramet

Rename FFI `getFuncArg*` to `getFuncParameter*`, $arg_index->$index (#7236)

PHP is already already using "Parameter" instead of "Argument" for reflection on types elsewhere.

Parameter is used to refer to the function declarations
(AST_PARAM internally in the AST, ReflectionFunctionAbstract->getParameters(),
etc.)
Argument is used to refer to expressions passed to the functions by the caller
(ArgumentCountError, etc.).
(Error messages were also changed in php 8.x to refer to passing too many arguments to a
function)

Other languages use similar definitions,
e.g. https://developer.mozilla.org/en-US/docs/Glossary/Parameter

show more ...

# a2845e32 13-Jul-2021 Dmitry Stogov

FFI::CType reflection API