1--TEST-- 2GH-11423 (internal constants have their namespace lowercased) 3--EXTENSIONS-- 4zend_test 5--FILE-- 6<?php 7 8$re = new \ReflectionExtension('zend_test'); 9var_dump($re->getConstants()); 10 11define('NS1\ns2\Const1','value1'); 12var_dump(get_defined_constants(true)["user"]); 13 14?> 15--EXPECT-- 16array(4) { 17 ["ZEND_TEST_DEPRECATED"]=> 18 int(42) 19 ["ZEND_CONSTANT_A"]=> 20 string(6) "global" 21 ["ZendTestNS2\ZEND_CONSTANT_A"]=> 22 string(10) "namespaced" 23 ["ZendTestNS2\ZendSubNS\ZEND_CONSTANT_A"]=> 24 string(10) "namespaced" 25} 26array(1) { 27 ["NS1\ns2\Const1"]=> 28 string(6) "value1" 29} 30