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