xref: /PHP-8.1/Zend/tests/bug66252.phpt (revision 7aacc705)
1--TEST--
2Bug #66252 (Problems in AST evaluation invalidating valid parent:: reference)
3--FILE--
4<?php
5class A {
6    const HW = "this is A";
7}
8class B extends A {
9    const BHW = parent::HW . " extended by B";
10}
11const C = B::BHW;
12echo C, "\n";
13?>
14--EXPECT--
15this is A extended by B
16