|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-22 09:52 UTC] tony2001@php.net
[2006-11-22 10:00 UTC] songqi at baidu dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 18:00:01 2025 UTC |
Description: ------------ Reflection`s 'getDocComment()' method only works at first time after a file was modified. The under code Reproduce code: --------------- <?php class abc{ /** * abc * * @param integer $a * @return string */ public function gete($a){ return $b; } } $obj = new ReflectionMethod("abc",'gete'); echo $obj->getDocComment(); Expected result: ---------------- /** * abc * * @param integer $a * @return string */ on each running. Actual result: -------------- got right output only at first time run, and got 'false' when run again.