#39578 [Csd->Bgs]: Reflection only works at first time run
| From: | bjori@php.net | Date: | Wed, 22 Nov 2006 16:04:05 +0000 |
| Subject: | #39578 [Csd->Bgs]: Reflection only works at first time run | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-105320@lists.php.net to get a copy of this message | ||
ID: 39578
Updated by: bjori@php.net
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] tony2001@php.net
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