C++ allows $a->bar() when bar() is a static method (yes, it is called in a static context there too).
IMO, there should be no error, warning or notice here. --Wez. > > class foo { > > static function bar() { > > } > > } > > $a = new foo(); > > $a->bar(); /* Unacceptable and contradictory to the concept of static > > */ foo::bar(); /* Acceptable */ > > I have the same problem as George :) I did not understand well your > original post. > > We are talking about the same thing. A notice (error sounds too > drastic here) should be raised if a static method is called from the > instanciated object. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php