ns_052.phpt 220 B

1234567891011121314
  1. --TEST--
  2. 052: Name conflict and compile-time constants (php name in case if ns name exists)
  3. --FILE--
  4. <?php
  5. namespace test\ns1;
  6. const INI_ALL = 0;
  7. function foo($x = \INI_ALL) {
  8. var_dump($x);
  9. }
  10. foo();
  11. --EXPECT--
  12. int(7)