xref: /php-src/Zend/tests/bug50174.phpt (revision f8d79582)
1--TEST--
2Bug #50174 (Incorrectly matched docComment)
3--FILE--
4<?php
5
6class TestClass
7{
8    /** const comment */
9    const C = 0;
10
11    function x() {}
12}
13
14$rm = new ReflectionMethod('TestClass', 'x');
15var_dump($rm->getDocComment());
16
17class TestClass2
18{
19    /** const comment */
20    const C = 0;
21
22    public $x;
23}
24
25$rp = new ReflectionProperty('TestClass2', 'x');
26var_dump($rp->getDocComment());
27
28?>
29--EXPECT--
30bool(false)
31bool(false)
32