1--TEST--
2ReflectionMethod::getDocComment()
3--INI--
4opcache.save_comments=1
5--FILE--
6<?php
7
8class X {
9    /**
10     * doc 1
11     */
12    // Some comment
13    public
14        $x = "x",
15        $y = 'y',
16        /** doc 2 */
17        $z = 'z'
18    ;
19}
20
21$reflection = new ReflectionProperty('\X', 'x');
22echo 'X::x', PHP_EOL;
23var_dump($reflection->getDocComment());
24
25$reflection = new ReflectionProperty('\X', 'y');
26echo 'X::y', PHP_EOL;
27var_dump($reflection->getDocComment());
28
29$reflection = new ReflectionProperty('\X', 'z');
30echo 'X::z', PHP_EOL;
31var_dump($reflection->getDocComment());
32?>
33--EXPECT--
34X::x
35string(24) "/**
36     * doc 1
37     */"
38X::y
39bool(false)
40X::z
41string(12) "/** doc 2 */"
42