1--TEST-- 2Namespace end resets seen function symbols 3--FILE-- 4<?php 5 6namespace { 7 function f() { 8 echo __FUNCTION__, "\n"; 9 } 10 f(); 11} 12 13namespace Ns { 14 function f() { 15 echo __FUNCTION__, "\n"; 16 } 17 f(); 18} 19 20namespace { 21 use function Ns\f; 22 f(); 23} 24 25namespace Ns { 26 use function f; 27 f(); 28} 29 30namespace { 31 f(); 32} 33 34namespace Ns { 35 f(); 36} 37 38namespace { 39 use function f; 40 f(); 41} 42 43namespace Ns { 44 use function Ns\f; 45 f(); 46} 47 48?> 49--EXPECTF-- 50Warning: The use statement with non-compound name 'f' has no effect in %s on line 36 51f 52Ns\f 53Ns\f 54f 55f 56Ns\f 57f 58Ns\f 59