Edit report at http://bugs.php.net/bug.php?id=53258&edit=1
ID: 53258 Updated by: [email protected] 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
