ns_077_5.phpt 297 B

12345678910111213141516
  1. --TEST--
  2. 077: Unknown compile-time constants in namespace
  3. --FILE--
  4. <?php
  5. function foo($a = array(0 => \unknown))
  6. {
  7. }
  8. foo();
  9. --EXPECTF--
  10. Fatal error: Uncaught Error: Undefined constant 'unknown' in %sns_077_%d.php:%d
  11. Stack trace:
  12. #0 %s(%d): foo()
  13. #1 {main}
  14. thrown in %sns_077_%d.php on line %d