Re: [PHP-DEV] protected __call() question

2004-04-09 Thread Andi Gutmans
At 09:40 AM 4/8/2004 +0200, Marcus Boerger wrote: > And I think __call has such few uses (I can think of one class right > now: Object proxies for SOAP/ XMLRPC or the like) that you will hardly > redeclare it anyway. If you start using __call on a regular basis you > should probably rethink your de

Re: [PHP-DEV] protected __call() question

2004-04-08 Thread Marcus Boerger
Hello Christian, Thursday, April 8, 2004, 8:09:20 AM, you wrote: > Jochem Maas wrote: >> I'm happy to just remove the P and add it again if ever that becomes an >> option. > Or go for the simpler option: Just don't use P. > An addition to the documentation of __call saying that it has to be >

Re: [PHP-DEV] protected __call() question

2004-04-07 Thread Christian Schneider
Jochem Maas wrote: I'm happy to just remove the P and add it again if ever that becomes an option. Or go for the simpler option: Just don't use P. An addition to the documentation of __call saying that it has to be public makes sense though. The meaning of PPP on __call would be confusing anywa

Re: [PHP-DEV] protected __call() question

2004-04-07 Thread Jochem Maas
George Schlossnagle wrote: On Apr 7, 2004, at 9:28 PM, Jochem Maas wrote: maybe its possible for the parser to ignore public/private/protected declarations on __call() (& also __set(), __get()) methods, given PHP forgiving nature/image (at least that is my impression). The whole point of PPP

Re: [PHP-DEV] protected __call() question

2004-04-07 Thread George Schlossnagle
On Apr 7, 2004, at 9:28 PM, Jochem Maas wrote: maybe its possible for the parser to ignore public/private/protected declarations on __call() (& also __set(), __get()) methods, given PHP forgiving nature/image (at least that is my impression). The whole point of PPP is to not be forgiving or per

Re: [PHP-DEV] protected __call() question

2004-04-07 Thread Jochem Maas
maybe its possible for the parser to ignore public/private/protected declarations on __call() (& also __set(), __get()) methods, given PHP forgiving nature/image (at least that is my impression). at the very least spare php-general a ton of emails by mentioning it prominently in the documentati

Re: [PHP-DEV] protected __call() question

2004-04-06 Thread Marcus Boerger
Hello Ferdinand, that seems to be the current argument - but we have changed otehr places like that already so we should make this feature request or even bug. marcus Monday, April 5, 2004, 1:18:57 PM, you wrote: > On 5 Apr 2004 at 11:23, Derick Rethans wrote: >> It is called from a public fun

Re: [PHP-DEV] protected __call() question

2004-04-05 Thread Ferdinand Beyer
On 5 Apr 2004 at 11:23, Derick Rethans wrote: > It is called from a public function, how can that be outside of the > class' point of view? > > Derick Ah, now I understand your point. But __call() is called by the engine, not by setup(), so it is the outside world Class CallMe { publi

Re: [PHP-DEV] protected __call() question

2004-04-05 Thread Derick Rethans
On Mon, 5 Apr 2004, Ferdinand Beyer wrote: > On 5 Apr 2004 at 10:12, Derick Rethans wrote: > > > But it is not called from the outside world ... > > From the class' point of view: Yes, it is. It is called from a public function, how can that be outside of the class' point of view? Derick -- PH

Re: [PHP-DEV] protected __call() question

2004-04-05 Thread Ferdinand Beyer
On 5 Apr 2004 at 10:12, Derick Rethans wrote: > But it is not called from the outside world ... >From the class' point of view: Yes, it is. -- Ferdinand Beyer <[EMAIL PROTECTED]> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] protected __call() question

2004-04-05 Thread Derick Rethans
On Mon, 5 Apr 2004, Marcus Boerger wrote: > Hello Jochem, > > using 'protected' for __call() hides that mechanism from the outside world, > hence the behavior is correct. Just drop protected and it should work as you > expect. But it is not called from the outside world ... Derick -- PHP Inter

Re: [PHP-DEV] protected __call() question

2004-04-05 Thread Marcus Boerger
Hello Jochem, using 'protected' for __call() hides that mechanism from the outside world, hence the behavior is correct. Just drop protected and it should work as you expect. marcus Sunday, April 4, 2004, 9:49:44 PM, you wrote: > the following code does not do what I expect, I made this test ca