mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
12 lines
181 B
Plaintext
12 lines
181 B
Plaintext
|
--TEST--
|
||
|
048: __NAMESPACE__ constant and runtime names (ns name)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
namespace test::ns1;
|
||
|
|
||
|
const FOO = 0;
|
||
|
|
||
|
var_dump(constant(__NAMESPACE__ . "::FOO"));
|
||
|
--EXPECT--
|
||
|
int(0)
|