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