Re: __constructor parameter limitations.
| From: | Stas Malyshev | Date: | Tue, 20 Sep 2011 18:28:26 +0000 |
| Subject: | Re: __constructor parameter limitations. | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-55564@lists.php.net to get a copy of this message | ||
Hi!
On 9/19/11 8:34 AM, Etienne Kneuss wrote:
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. 227Sure, 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.