1--TEST--
2shadowing a global function with a local version
3--FILE--
4<?php
5
6namespace {
7    require 'includes/global_bar.php';
8    require 'includes/foo_bar.php';
9}
10
11namespace {
12    var_dump(bar());
13}
14
15namespace {
16    use function 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