php-src/Zend/tests/bug20242.phpt

22 lines
281 B
Plaintext
Raw Normal View History

2003-06-02 02:35:29 +08:00
--TEST--
2003-07-25 01:07:40 +08:00
Bug #20242 (Method call in front of class definition)
2003-06-02 02:35:29 +08:00
--FILE--
<?php
test::show_static();
$t = new test;
$t->show_method();
class test {
static function show_static() {
echo "static\n";
}
function show_method() {
echo "method\n";
}
}
?>
--EXPECT--
static
method