Re: [PHP-DEV] non static function called as static one

2009-03-11 Thread Greg Beaver
Olivier Doucet wrote: > Hi, > > >> not sure if this was mentioned on the general list but, i believe what >> youre describing is documented in the manual under php5 classes/objects -> >> "the basics": >> >> http://www.php.net/manual/en/language.oop5.basic.php >> >> $this is a reference to the cal

Re: [PHP-DEV] non static function called as static one

2009-03-11 Thread Nathan Nobbe
On Wed, Mar 11, 2009 at 4:40 PM, Olivier Doucet wrote: > Hi, > > >> not sure if this was mentioned on the general list but, i believe what >> youre describing is documented in the manual under php5 classes/objects -> >> "the basics": >> >> http://www.php.net/manual/en/language.oop5.basic.php >> >

Re: [PHP-DEV] non static function called as static one

2009-03-11 Thread Olivier Doucet
Hi, > not sure if this was mentioned on the general list but, i believe what > youre describing is documented in the manual under php5 classes/objects -> > "the basics": > > http://www.php.net/manual/en/language.oop5.basic.php > > $this is a reference to the calling object (usually the object to

Re: [PHP-DEV] non static function called as static one

2009-03-11 Thread Nathan Nobbe
On Wed, Mar 11, 2009 at 3:16 PM, Olivier Doucet wrote: > Hello, > > I posted the same topic on the general mailing list, but it appears this > can > be posted here, as it is open to feedbacks and is about PHP implementation > of static functions. > > I'm wondering if the following behaviour is a

Re: [PHP-DEV] non static function called as static one

2009-03-11 Thread Todd Ruth
On Wed, 2009-03-11 at 22:16 +0100, Olivier Doucet wrote: > Hello, > > I posted the same topic on the general mailing list, but it appears this can > be posted here, as it is open to feedbacks and is about PHP implementation > of static functions. > > I'm wondering if the following behaviour is a

[PHP-DEV] non static function called as static one

2009-03-11 Thread Olivier Doucet
Hello, I posted the same topic on the general mailing list, but it appears this can be posted here, as it is open to feedbacks and is about PHP implementation of static functions. I'm wondering if the following behaviour is a bug or a feature. The case is quite complex, so let me explain my point