On Wed, Jan 04, 2006 at 02:20:45PM -0800, Sara Golemon wrote:
> > Currently there is no way to detect if the __call overloads a particular
> > method.  Property overloading has __isset now in 5.1 - maybe for method
> > overloading the equivalent should be something like __iscallable.  Maybe
> > method_exists should remain as is, as the method won't ever really exist
> > but is_callable would/could use it, or perhaps some new function.
> >
> This'll do what you want:
> 
> http://libssh2.org/dist/callable-1.0.tgz
> 
> It's PEAR packaged so compiling/installing should be simple enough.... Dunno
> if it's worth dropping into PECL though...
> 
> -Sara

Thanks Sara.  Nice to see that others have the need.  Works like a
charm.  You rock.

Marcus, is this along the lines of what you had in mind for the
(possible) implementation?  This doesn't use interfaces, but that seems
trivial.  I wasn't clear if you'd envisioned taking it one step further
and do the check before invocations of __call or not.

Regards,
Andrew
-- 
Andrew Yochum
Plexpod
[EMAIL PROTECTED]
718-360-0879

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to