summaryrefslogtreecommitdiff
path: root/Zend/tests/use_function/ignore_constants.phpt
blob: c50ff7357af174f7d761565d7b5dadfd1710b8eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
use function should ignore namespaced constants
--FILE--
<?php

namespace foo {
    const bar = 42;
}

namespace {
    const bar = 43;
}

namespace {
    use function foo\bar;
    var_dump(bar);
    echo "Done\n";
}

?>
--EXPECT--
int(43)
Done