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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: D dot Kingma at jool dot nl
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 17:01:34 2025 UTC