mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
7aacc705d0
Closes GH-5958
19 lines
325 B
PHP
19 lines
325 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: Uncaught Error: Undefined constant "foo\unknown" in %s:%d
|
|
Stack trace:
|
|
#0 %s(%d): foo\foo()
|
|
#1 {main}
|
|
thrown in %sns_077_%d.php on line %d
|