mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +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)
|