1--TEST--
2Leak when using an invalid parent:: reference in a constant definition
3--FILE--
4<?php
5
6class A {
7    const B = parent::C;
8}
9
10try {
11    A::B;
12} catch (Error $e) {
13    echo $e->getMessage(), "\n";
14}
15
16?>
17--EXPECT--
18Cannot access "parent" when current class scope has no parent
19