php-src/Zend/tests/use_function/define_imported.phpt

15 lines
254 B
PHP

--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