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