Re: __call overload detection
| From: | Marcus Boerger | Date: | Wed, 04 Jan 2006 15:29:39 +0000 |
| Subject: | Re: __call overload detection | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-21414@lists.php.net to get a copy of this message | ||
Hello Stanislav,
how is this a major slowdown? It would add a simple pointer check at
runtime and two places to set the pointer, one place will initialize it to
NULL and the other will store some function pointer just like all the other
__*()'s do.
marcus
Wednesday, January 4, 2006, 4:13:02 PM, you wrote:
LS>>>well in theory is_callable could also be called before __call() to save
LS>>>people from having to duplicate the logic from __callable() and to have the
LS>>>engine trigger the error. that is what i meant and like i said i do not
> That would be major slowdown - why should engine call additional methods?
> In 99.99% of cases you don't need it and actually you would _have_ to
> duplicate logic - once for handler that checks the callability and once
> for the actual __call().
Best regards,
Marcus