On Mon, Jul 2, 2018 at 11:00 PM, Christoph M. Becker <cmbecke...@gmx.de>
wrote:

> Hi!
>
> Is there any particular reason why internal functions raise a warning/an
> error regarding excess arguments, unless they are not supposed to
> receive any arguments at all?  In other words, why don't we use
> ZEND_PARSE_PARAMETERS_NONE() (except for net_get_interfaces())?
>

The more common macro for this is zend_parse_parameters_none(), which a
quick grep shows to be used by 519 functions. If a function accepts no
arguments and does not use zend_parse_parameters_none(), that's generally a
bug.

Nikita

Reply via email to