blob: c8c1b96399307e9f42e838009343c56f77e42e6a (
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(\unknown => unknown))
{
}
foo();
--EXPECTF--
Fatal error: Uncaught exception 'EngineException' with message 'Undefined constant '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
|