Re: required argument after an optional should make it required
| From: | Stas Malyshev | Date: | Sun, 16 Oct 2011 00:20:09 +0000 |
| Subject: | Re: required argument after an optional should make it required | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-55811@lists.php.net to get a copy of this message | ||
Hi!
On 9/26/11 4:43 PM, Ferenc Kovacs wrote:
Hi. I've just found a nice feature request in the bugtracker: https://bugs.php.net/bug.php?id=53399 what do you think about it?I think the idea is good, however the patch seems too complicated. I do not think we need additional flag and not sure why would we need additional pass through arguments to do it - if we say everything after certain arg is optional, then we already know how to do it, we have settings for that in args structure. And we can detect this stuation immediately when we parse the arguments on compile. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227