xref: /PHP-8.2/Zend/tests/bug43344_13.phpt (revision d30cd7d7)
1--TEST--
2Bug #43344.13 (Wrong error message for undefined namespace constant)
3--FILE--
4<?php
5function f($a=array(namespace\bar=>0)) {
6    reset($a);
7    return key($a);
8}
9echo f()."\n";
10?>
11--EXPECTF--
12Fatal error: Uncaught Error: Undefined constant "bar" in %s:%d
13Stack trace:
14#0 %s(%d): f()
15#1 {main}
16  thrown in %sbug43344_13.php on line %d
17