1--TEST--
2Self-referencing constant expression (part of a constant AST)
3--FILE--
4<?php
5class A {
6 const FOO = [self::BAR];
7 const BAR = [self::FOO];
8}
9var_dump(A::FOO);
10?>
11--EXPECTF--
12Fatal error: Cannot declare self-referencing constant 'self::FOO' in %s on line %d
13
14