php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39578 Reflection only works at first time run
Submitted: 2006-11-22 05:24 UTC Modified: 2006-11-22 16:04 UTC
From: songqi at baidu dot com Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 5.2.0 OS: redhat linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: songqi at baidu dot com
New email:
PHP Version: OS:

 

 [2006-11-22 05:24 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-22 09:52 UTC] tony2001@php.net
Cannot reproduce.
 [2006-11-22 10:00 UTC] songqi at baidu dot com
Sorry, I found I installed 'eAccelerator' and that cause the problem:)

thanks for your attention.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 08:01:29 2025 UTC