|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58705 require/require_once not special cased like include/include_once
Submitted: 2009-05-27 14:07 UTC Modified: 2009-05-27 14:18 UTC
From: Assigned: kannan (profile)
Status: Closed Package: xhprof (PECL)
PHP Version: 5.2.5 OS:
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.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2009-05-27 14:07 UTC]
As per XHProf documentation, (, "include", "include_once"/"require"/"require_once" operations are special cased.

For example, an 
  include "lib/common.php"; 
operation will get reported in XHProf as two function entries:

    * load::lib/common.php - This represents the work done by the interpreter to compile/load the file. [Note: If you are using a PHP opcode cache like APC, then the compile only happens on a cache miss in APC.]
    * run_init::lib/common.php - This represents initialization code executed at the file scope as a result of the include operation.

However, the implementation is currently only doing this special casing for include/include_once, but not require/ require_once.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-27 14:18 UTC]
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

Checked in fix to trunk. The fix should be available starting from release 0.9.2.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Jan 19 07:01:23 2020 UTC