1--TEST--
2ReflectionConstant::getValue()
3--EXTENSIONS--
4zend_test
5--FILE--
6<?php
7
8$reflectionConstant = new ReflectionConstant('ZEND_CONSTANT_A');
9var_dump($reflectionConstant->getValue());
10
11$reflectionConstant = new ReflectionConstant('ZEND_TEST_DEPRECATED');
12var_dump($reflectionConstant->getValue());
13
14define('RT_CONST', 42);
15$reflectionConstant = new ReflectionConstant('RT_CONST');
16var_dump($reflectionConstant->getValue());
17
18define('CT_CONST', 43);
19$reflectionConstant = new ReflectionConstant('CT_CONST');
20var_dump($reflectionConstant->getValue());
21
22?>
23--EXPECT--
24string(6) "global"
25int(42)
26int(42)
27int(43)
28