ID: 39578 Updated by: [EMAIL PROTECTED] Reported By: songqi at baidu dot com -Status: Open +Status: Feedback Bug Type: Class/Object related Operating System: redhat linux PHP Version: 5.2.0 New Comment:
Cannot reproduce. Previous Comments: ------------------------------------------------------------------------ [2006-11-22 05:24:05] songqi at baidu dot com 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39578&edit=1