blob: 3b3c4b3262e798f89029aed9fecef90c980742b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--TEST--
use const statements with conflicting names
--FILE--
<?php
namespace foo {
const baz = 42;
}
namespace bar {
const baz = 42;
}
namespace {
use const foo\baz, bar\baz;
echo "Done\n";
}
?>
--EXPECTF--
Fatal error: Cannot use const bar\baz as baz because the name is already in use in %s on line %d
|