1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 03:32:20 +02:00
Files
archived-php-src/Zend/tests/use_function/conflicting_use_alias.phpt

21 lines
247 B
PHP

--TEST--
use and use function with the same alias
--FILE--
<?php
namespace {
function foo() {
return 'foo';
}
}
namespace x {
use foo as bar;
use function foo as bar;
var_dump(bar());
}
?>
--EXPECT--
string(3) "foo"