Re: __call() magic method

From: Date: Sat, 30 Aug 2008 22:50:15 +0000
Subject: Re: __call() magic method
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-40175@lists.php.net to get a copy of this message
Exactly... Is that normal workings or more like a bugie one? On Sat, Aug 30, 2008 at 10:02 PM, Rasmus Lerdorf <rasmus@lerdorf.com> wrote: > Cristian Rodríguez wrote: >> >> Diogo Neves escribió: >>> >>> Hi all, >>> >>> I'm emailling to ask why __call isn't called when you call a private >>> method from outside of function... >> >> Please provide example code ;-) > > He means this: > > class foo { > private function bar() { } > function __call($f,$a) { > echo "called $f"; > } > } > $a = new foo; > $a->bar(); > -- Thanks by your attention, Diogo Neves Web Developer @ SAPO.pt by PrimeIT.pt

« previous php.internals (#40175) next »