summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_007.phpt
blob: 2f4d1361dcfc499061bd13ded42777cae0971a84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
007: Run-time name conflict (php name)
--FILE--
<?php
namespace test\ns1;

class Exception {
}

$x = "Exception";
echo get_class(new $x),"\n";
--EXPECT--
Exception