php-src/Zend/tests/bug26802.phpt

25 lines
250 B
Plaintext
Raw Normal View History

2004-01-05 22:17:14 +00:00
--TEST--
#26802 (Can't call static method using a variable)
--FILE--
<?php
class foo
{
static public function bar() {
print "baz\n";
}
}
foo::bar();
$static_method = "foo::bar";
$static_method();
?>
===DONE===
--EXPECT--
baz
2004-01-05 22:40:24 +00:00
baz
2004-01-05 22:17:14 +00:00
===DONE===