summaryrefslogtreecommitdiff
path: root/Zend/tests/bug50174.phpt
blob: 5f0bbd7dd49ed62dc25e7cca52254658c21ed711 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--TEST--
Bug #50174 (Incorrectly matched docComment)
--FILE--
<?php

class TestClass
{
    /** const comment */
    const C = 0;

    function x() {}
}

$rm = new ReflectionMethod('TestClass', 'x');
var_dump($rm->getDocComment());

class TestClass2
{
    /** const comment */
    const C = 0;

    public $x;
}

$rp = new ReflectionProperty('TestClass2', 'x');
var_dump($rp->getDocComment());

?>
--EXPECT--
bool(false)
bool(false)