1--TEST-- 2shadowing a global constant with a local version 3--FILE-- 4<?php 5 6namespace { 7 require 'includes/global_bar.inc'; 8 require 'includes/foo_bar.inc'; 9} 10 11namespace { 12 var_dump(bar); 13} 14 15namespace { 16 use const foo\bar; 17 var_dump(bar); 18 echo "Done\n"; 19} 20 21?> 22--EXPECT-- 23string(10) "global bar" 24string(9) "local bar" 25Done 26