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