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