Bug #53258 [Fbk->Bgs]: ReflectionClass/getMethods/getDocComment returns nothing

From: Date: Tue, 09 Nov 2010 00:07:08 +0000
Subject: Bug #53258 [Fbk->Bgs]: ReflectionClass/getMethods/getDocComment returns nothing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-155868@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: Feedback +Status: Bogus Type: Bug Package: Reflection related Operating System: Fedora 13 PHP Version: 5.3.3 Block user comment: N New Comment: ;) Previous Comments: ------------------------------------------------------------------------ [2010-11-08 22:57:17] spamtray at gmail dot com You where correct Felipe. My problem wasnt PHP but the eaccelerator like described here: http://eaccelerator.net/ticket/229 Tnankyou guys ------------------------------------------------------------------------ [2010-11-08 01:35:41] felipe@php.net 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. ------------------------------------------------------------------------ [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

« previous php.bugs (#155868) next »