Re: [PHP-DEV] Static method call syntax on objects

2011-08-10 Thread Etienne Kneuss
Hello, On Wed, Aug 10, 2011 at 22:20, Stas Malyshev wrote: > Hi! > > On 8/10/11 1:12 PM, Sebastian Bergmann wrote: >> >>   Is this exepcted behaviour? >> >>     ➜  ~  cat test.php >>     >     class Foo { >>         public static function bar() { >>             print __METHOD__ . "\n"; >>        

Re: [PHP-DEV] Static method call syntax on objects

2011-08-10 Thread Stas Malyshev
Hi! On 8/10/11 1:12 PM, Sebastian Bergmann wrote: Is this exepcted behaviour? ➜ ~ cat test.php This is how FETCH_CLASS works now - when it has an object in where it expects class name, it uses object's class. We could call toString() instead but that might be even more surpri

[PHP-DEV] Static method call syntax on objects

2011-08-10 Thread Sebastian Bergmann
Is this exepcted behaviour? ➜ ~ cat test.php http://sebastian-bergmann.de/ http://thePHP.cc/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php