summaryrefslogtreecommitdiff
path: root/Zend/tests/bug69676.phpt
blob: c18eb8f6015c1db24c7a9a61ec9c0202c68fa16f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Bug #69676: Resolution of self::FOO in class constants not correct
--FILE--
<?php
class A {
    const myConst = "const in A";
    const myDynConst = self::myConst;
}

class B extends A {
    const myConst = "const in B";
}

var_dump(B::myDynConst);
var_dump(A::myDynConst);
?>
--EXPECT--
string(10) "const in A"
string(10) "const in A"