Hi!

On 9/19/11 8:34 AM, Etienne Kneuss wrote:
  Sure, you can do it.  But if you do, you're lying about the
interface.  You're telling the callers that you expect no arguments,
but then all of a sudden you error out.


Well, we have no way of declaring that we accept an undefined number of
arguments. So there is simply no choice here.

foo() *is* accepting undefined number of args. PHP has always been tolerant to passing more arguments than signature states and blank signatures were used for such things since forever.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to