mirror of
https://github.com/php/php-src.git
synced 2024-12-17 13:59:28 +08:00
22 lines
305 B
PHP
22 lines
305 B
PHP
--TEST--
|
|
Bug #20242 (Method call in front of class definition)
|
|
--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
|