Re: __call overload detection
| From: | Derick Rethans | Date: | Wed, 04 Jan 2006 09:19:22 +0000 |
| Subject: | Re: __call overload detection | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-21396@lists.php.net to get a copy of this message | ||
On Wed, 4 Jan 2006, Stanislav Malyshev wrote:
> MB>> the point is probably that there is no way in determinig whether a
> MB>>certain function is supposed to work prior to calling it.
>
> This is the case for all functions. For example, if you call mysql_query,
> you have no way of knowing if it would succeed prior to calling it. So
> __call is not much different - you know it will call __call but you don't
> know if the call would succeed.
That is not fully true, as you can use function_exists() on mysql_query,
where there is no such possibility for methods that are overloaded with
__call().
Derick