php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28781 No results from reflection API getDocComment
Submitted: 2004-06-14 20:55 UTC Modified: 2004-06-14 21:09 UTC
From: D dot Kingma at jool dot nl Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5CVS-2004-06-14 (dev) OS: Win XP
Private report: No CVE-ID: None
 [2004-06-14 20:55 UTC] D dot Kingma at jool dot nl
Description:
------------
The getDocComment method from the reflection API (reflectionMethod / reflectionClass) doesn't give any results sinds the latest update to the reflection API (~4days ago).

Reproduce code:
---------------
class testReflection{
	/**
	 * Function to test the getDocComment() method
	 */
	 function getComment(){
	 }
}
$x=new reflectionMethod('testReflection','getComment');
$comment=$x->getDocComment();
echo "Comment: '$comment'";

Expected result:
----------------
Comment: '* Function to test the getDocComment() method'

Actual result:
--------------
Comment: ''

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-14 21:09 UTC] helly@php.net
This bug has been fixed in CVS.

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.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Nov 27 18:01:25 2020 UTC