php-src/Zend/tests/ns_077_2.phpt

18 lines
322 B
PHP

--TEST--
077: Unknown compile-time constants in namespace
--FILE--
<?php
namespace foo;
function foo($a = array(\unknown => unknown))
{
}
foo();
--EXPECTF--
Fatal error: Uncaught Error: 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