Re: inheritance check too strict?
| From: | Pierre Joye | Date: | Thu, 19 Aug 2010 18:29:52 +0000 |
| Subject: | Re: inheritance check too strict? | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49465@lists.php.net to get a copy of this message | ||
hi Stas,
On Thu, Aug 19, 2010 at 6:53 PM, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
>> Arguments being silently ignored sounds like a potential bug to me. I
>> know it's something I've seen in code I've maintained.
>
> No, it's not a bug - extra arguments were silently ignored in PHP since the
> dawn of time.
Inconsistently. Many internals functions do not accept more arguments
than the supported ones.
However, what are the benefits to be less strict in your example? I
can't think of any practical (or critical) example where you have to
remove this optional argument.
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org