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
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
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;