ns_007.phpt 173 B

12345678910111213
  1. --TEST--
  2. 007: Run-time name conflict (php name)
  3. --FILE--
  4. <?php
  5. namespace test\ns1;
  6. class Exception {
  7. }
  8. $x = "Exception";
  9. echo get_class(new $x),"\n";
  10. --EXPECT--
  11. Exception