php-src/Zend/tests/ns_077_3.phpt
2012-10-10 10:27:49 +08:00

14 lines
244 B
PHP

--TEST--
077: Unknown compile-time constants in namespace
--FILE--
<?php
namespace foo;
function foo($a = array(namespace\unknown => unknown))
{
}
foo();
--EXPECTF--
Fatal error: Undefined constant 'foo\unknown' in %sns_077_%d.php on line %d