ID:          50174
 Updated by:  fel...@php.net
 Reported By: david at grudl dot com
-Status:      Open
+Status:      Closed
 Bug Type:    Reflection related
-PHP Version: 5.3.1RC4
+PHP Version: 5.2, 5.3, 6
-Assigned To: 
+Assigned To: felipe
 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2009-11-14 19:17:23] s...@php.net

Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&revision=290752
Log: - Fixed bug #50174 (Incorrectly matched docComment)

------------------------------------------------------------------------

[2009-11-14 05:18:40] david at grudl dot com

Description:
------------
ReflectionMethod and ReflectionProperty may return invalid
phpDocComment. See examples:


Reproduce code:
---------------
1) 

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

        function x() {}
}

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


// OR


2)

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

        var $x;
}

$rp = new ReflectionProperty('TestClass', 'x');
echo $rp->getDocComment();



Expected result:
----------------
FALSE

Actual result:
--------------
/** const comment */


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=50174&edit=1

Reply via email to