summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_077_8.phpt
blob: 34e955416404cf5d44aa9e94ab7a4abee48032c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
077: Unknown compile-time constants in namespace
--FILE--
<?php

function foo($a = array(namespace\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()
#1 {main}
  thrown in %sns_077_%d.php on line %d