summaryrefslogtreecommitdiff
path: root/Zend/tests/constant_expressions_dynamic_class_name_error.phpt
blob: 3ce58446497df876af0bfbe5aaf21142275d016c (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Dynamic class names can't be used in compile-time constant refs
--FILE--
<?php

$foo = 'test';
const C = $foo::BAR;

?>
--EXPECTF--
Fatal error: Dynamic class names are not allowed in compile-time class constant references in %s on line %d