summaryrefslogtreecommitdiff
path: root/Zend/tests/bug70997.phpt
blob: 286d4bccfad28ff6fca806b979fff68ef63c0b36 (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
--TEST--
Bug #70997 (When using parentClass:: instead of parent::, static context changed)
--FILE--
<?php
class A {
    const TEST = false;

    public function test()
    {
        var_dump(static::TEST);
    }
}

class B extends A {
    const TEST = true;

    public function test()
    {
        A::test();
    }
}

$b = new B;
$b->test();
?>
--EXPECT--
bool(true)