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