xref: /PHP-7.4/Zend/tests/bug69676.phpt (revision 3dba00bc)
1--TEST--
2Bug #69676: Resolution of self::FOO in class constants not correct
3--FILE--
4<?php
5class A {
6	const myConst = "const in A";
7	const myDynConst = self::myConst;
8}
9
10class B extends A {
11	const myConst = "const in B";
12}
13
14var_dump(B::myDynConst);
15var_dump(A::myDynConst);
16?>
17--EXPECT--
18string(10) "const in A"
19string(10) "const in A"
20