summaryrefslogtreecommitdiff
path: root/Zend/tests/bug69676_2.phpt
blob: 4c5036ad96c9e60c2740a202054123927fd4218b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Bug #69676: Resolution of self::FOO in class constants not correct (variation)
--FILE--
<?php

class Foo {
    const A = 'Foo::A';
    const B = self::A . ' and ' . self::C;
    const C = 'Foo::C';

}

class Bar extends Foo {
    const A = 'Bar::A';
    const C = 'Bar::C';
}

var_dump(Bar::B);

?>
--EXPECT--
string(17) "Foo::A and Foo::C"