xref: /PHP-7.0/Zend/tests/bug70997.phpt (revision 25c5d185)
1--TEST--
2Bug #70997 (When using parentClass:: instead of parent::, static context changed)
3--FILE--
4<?php
5class A {
6    const TEST = false;
7
8    public function test()
9    {
10        var_dump(static::TEST);
11    }
12}
13
14class B extends A {
15    const TEST = true;
16
17    public function test()
18    {
19        A::test();
20    }
21}
22
23$b = new B;
24$b->test();
25--EXPECT--
26bool(true)
27