xref: /PHP-7.0/Zend/tests/bug66252.phpt (revision 5a87b7ff)
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--EXPECT--
14this is A extended by B
15