ID: 39578
Updated by: [EMAIL PROTECTED]
Reported By: songqi at baidu dot com
-Status: Closed
+Status: Bogus
Bug Type: Class/Object related
Operating System: redhat linux
PHP Version: 5.2.0
Previous Comments:
------------------------------------------------------------------------
[2006-11-22 10:00:14] songqi at baidu dot com
Sorry, I found I installed 'eAccelerator' and that cause the problem:)
thanks for your attention.
------------------------------------------------------------------------
[2006-11-22 09:52:05] [EMAIL PROTECTED]
Cannot reproduce.
------------------------------------------------------------------------
[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