Bug #53258 [Opn->Fbk]: ReflectionClass/getMethods/getDocComment returns nothing
| From: | felipe@php.net | Date: | Mon, 08 Nov 2010 00:35:41 +0000 |
| Subject: | Bug #53258 [Opn->Fbk]: ReflectionClass/getMethods/getDocComment returns nothing | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-155835@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53258&edit=1
ID: 53258
Updated by: felipe@php.net
Reported by: spamtray at gmail dot com
Summary: ReflectionClass/getMethods/getDocComment returns
nothing
-Status: Open
+Status: Feedback
Type: Bug
Package: Reflection related
Operating System: Fedora 13
PHP Version: 5.3.3
Block user comment: N
New Comment:
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
I can't reproduce this.
Previous Comments:
------------------------------------------------------------------------
[2010-11-08 01:10:15] spamtray at gmail dot com
Description:
------------
ReflectionClass/getMethods/getDocComment returns nothing under php
5.3.3, works fine in 5.2.10
class Service
{
/**
* Retrieve all info about partner
*
* @action get
* @param int $partnerId
* @return Partner
*/
public function getAction($partnerId)
{
}
/**
* @action getUsage
* @param PartnerFilter $filter
*/
public function getUsageAction($filter)
{
}
}
Test script:
---------------
$rc = new ReflectionClass('Service');
$methods = $rc->getMethods(ReflectionMethod::IS_PUBLIC);
foreach ($methods as $method) {
echo '<pre>';
$docComment = $method->getDocComment();
print_r($docComment);
echo '</pre>';
}
Expected result:
----------------
/**
* Retrieve all info about partner
*
* @action get
* @param int $partnerId
* @return Partner
*/
/**
* @action getUsage
* @param PartnerFilter $filter
*/
Actual result:
--------------
NOTHING
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53258&edit=1