|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-11-08 01:35 UTC] felipe@php.net
-Status: Open
+Status: Feedback
[2010-11-08 01:35 UTC] felipe@php.net
[2010-11-08 22:57 UTC] spamtray at gmail dot com
[2010-11-09 01:07 UTC] felipe@php.net
-Status: Feedback
+Status: Bogus
[2010-11-09 01:07 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 17:00:02 2025 UTC |
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