summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_077_7.phpt
blob: 99a6699b9bdb8ab22a07b1b359f713bad7a749ac (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(0 => namespace\unknown))
{
}

foo();
--EXPECTF--
Fatal error: Uncaught exception 'Error' 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