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