mirror of
https://github.com/php/php-src.git
synced 2024-12-16 05:15:03 +08:00
d30cd7d7e7
Closes GH-5590
31 lines
458 B
PHP
31 lines
458 B
PHP
--TEST--
|
|
076: Unknown constants in namespace
|
|
--FILE--
|
|
<?php
|
|
namespace foo;
|
|
use Error;
|
|
|
|
try {
|
|
$a = array(unknown => unknown);
|
|
} catch (Error $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
|
|
try {
|
|
echo unknown;
|
|
} catch (Error $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
|
|
try {
|
|
echo \unknown;
|
|
} catch (Error $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
Undefined constant "foo\unknown"
|
|
Undefined constant "foo\unknown"
|
|
Undefined constant "unknown"
|