NYCPHP Meetup

NYPHP.org

[nycphp-talk] __call() in php5?

jon baer jonbaer at jonbaer.net
Mon Feb 16 03:39:50 EST 2004


i think im a little confused over the method ...

if its placed inside an object to intercept method calls the execution will
stop with the exit of the function being called ... i thought u could use
the function as an inbetween for an overloading function ... ex:

$obj = new Obj2(); // extension of Obj1
$obj->foo();

if Obj1 has a __call() without the function foo() it will work but if Obj2
contains foo() the method will run and stop, so __call() is never really
"called" .. just trying to understand this method ... the __set() and
__get() seem ok.

- jon

pgp key: http://www.jonbaer.net/jonbaer.asc
fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47




More information about the talk mailing list