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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 05 23:01:30 2024 UTC