summaryrefslogtreecommitdiff
path: root/Zend/tests/bug51176.phpt
blob: cf47b74da8a7718e409aaf651ea453cf09af835d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--TEST--
Bug #51176 (Static calling in non-static method behaves like $this->)
--FILE--
<?php
class Foo
{
    public function start()
    {
        self::bar();
        static::bar();
        Foo::bar();
    }

    public function __call($n, $a)
    {
        echo "instance\n";
    }

    public static function __callStatic($n, $a)
    {
        echo "static\n";
    }
}

$foo = new Foo();
$foo->start();

?>
--EXPECT--
instance
instance
instance