php-src/Zend/tests/ns_048.phpt

12 lines
181 B
Plaintext
Raw Normal View History

2007-08-24 13:50:52 +00:00
--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)