mirror of
https://github.com/php/php-src.git
synced 2024-12-22 00:10:16 +08:00
17 lines
312 B
PHP
17 lines
312 B
PHP
--TEST--
|
|
077: Unknown compile-time constants in namespace
|
|
--FILE--
|
|
<?php
|
|
|
|
function foo($a = array(namespace\unknown => unknown))
|
|
{
|
|
}
|
|
|
|
foo();
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: 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
|