1--TEST--
2Dynamic class names can't be used in compile-time constant refs
3--FILE--
4<?php
5
6$foo = 'test';
7const C = $foo::BAR;
8
9?>
10--EXPECTF--
11Fatal error: Dynamic class names are not allowed in compile-time class constant references in %s on line %d
12