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