summaryrefslogtreecommitdiff
path: root/Zend/tests/use_function/define_imported.phpt
blob: c542a4d5494b9f6f68f18d2ea508d223fd0946b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
defining function with same name as imported should fail
--FILE--
<?php

namespace {
    use function foo\bar;

    function bar() {}
}

?>
--EXPECTF--
Fatal error: Cannot declare function bar because the name is already in use in %s on line %d