constants_004.phpt 191 B

12345678910111213
  1. --TEST--
  2. Trying to redeclare constant inside namespace
  3. --FILE--
  4. <?php
  5. namespace foo;
  6. const foo = 1;
  7. const foo = 2;
  8. ?>
  9. --EXPECTF--
  10. Notice: Constant foo\foo already defined in %s on line %d