mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
10 lines
160 B
PHP
10 lines
160 B
PHP
--TEST--
|
|
049: __NAMESPACE__ constant and runtime names (php name)
|
|
--FILE--
|
|
<?php
|
|
const FOO = 0;
|
|
|
|
var_dump(constant(__NAMESPACE__ . "\\FOO"));
|
|
--EXPECT--
|
|
int(0)
|