Re: Excess arguments for internal functions

From: Date: Mon, 02 Jul 2018 21:16:56 +0000
Subject: Re: Excess arguments for internal functions
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-102554@lists.php.net to get a copy of this message
On Mon, Jul 2, 2018 at 11:00 PM, Christoph M. Becker <cmbecker69@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

« previous php.internals (#102554) next »