1--TEST--
2Class constants and doc comments
3--INI--
4opcache.save_comments=1
5--FILE--
6<?php
7class X {
8	/** comment X1 */
9	const X1 = 1;
10	const X2 = 2;
11	/** comment X3 */
12	const X3 = 3;
13}
14class Y extends X {
15	/** comment Y1 */
16	const Y1 = 1;
17	const Y2 = 2;
18	/** comment Y3 */
19	const Y3 = 3;
20}
21$r = new ReflectionClass('Y');
22foreach ($r->getReflectionConstants() as $rc) {
23	echo $rc->getName() . " : " . $rc->getDocComment() . "\n";
24}
25
26
27?>
28--EXPECT--
29Y1 : /** comment Y1 */
30Y2 :
31Y3 : /** comment Y3 */
32X1 : /** comment X1 */
33X2 :
34X3 : /** comment X3 */
35