blob: 34eca93b9c9831b6c01a639057d2033cc101573f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--TEST--
077: Unknown compile-time constants in namespace
--FILE--
<?php
namespace foo;
function foo($a = array(0 => namespace\unknown))
{
}
foo();
--EXPECTF--
Fatal error: Uncaught exception 'Error' with message 'Undefined constant 'foo\unknown'' in %sns_077_%d.php:%d
Stack trace:
#0 %s(%d): foo\foo()
#1 {main}
thrown in %sns_077_%d.php on line %d
|