summaryrefslogtreecommitdiff
path: root/Zend/tests/bug20242.phpt
blob: f1223a03c621549e2e88766714e949002be17c9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--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