[PHP-DEV] Static method call syntax on objects

2011-08-10 Thread Sebastian Bergmann
Is this exepcted behaviour? ➜ ~ cat test.php ?php class Foo { public static function bar() { print __METHOD__ . \n; } } $foo = new Foo; $foo::bar(); ➜ ~ php test.php Foo::bar I, for one, was surprised that this does what it does with PHP

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 ?php class Foo { public static function bar() { print __METHOD__ . \n; } } $foo = new Foo; $foo::bar(); ➜ ~ php test.php

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 smalys...@sugarcrm.com wrote: Hi! On 8/10/11 1:12 PM, Sebastian Bergmann wrote:   Is this exepcted behaviour?     ➜  ~  cat test.php     ?php     class Foo {         public static function bar() {             print __METHOD__ . \n;