xref: /PHP-7.3/Zend/tests/ns_077_2.phpt (revision e97d5fab)
1--TEST--
2077: Unknown compile-time constants in namespace
3--FILE--
4<?php
5namespace foo;
6
7function foo($a = array(\unknown => unknown))
8{
9}
10
11foo();
12--EXPECTF--
13Fatal error: Uncaught Error: Undefined constant 'unknown' in %sns_077_%d.php:%d
14Stack trace:
15#0 %s(%d): foo\foo()
16#1 {main}
17  thrown in %sns_077_%d.php on line %d
18